public class EglModule extends EolModule implements IEglModule
EglTemplateFactory
and EglTemplate
to parse and execute EGL, by transforming to EOL.
Most extensions should subclass EglTemplateFactory
and/or
EglTemplate
rather than this class.Modifier and Type | Field and Description |
---|---|
protected EglParser |
eglParser |
compilationContext, context, declaredModelDeclarations, declaredOperations, imports, main, modelDeclarations, operations, postOperationStatements
parseProblems, parser, sourceFile, sourceUri
Constructor and Description |
---|
EglModule() |
EglModule(IEglContext context) |
Modifier and Type | Method and Description |
---|---|
ModuleElement |
adapt(AST cst,
ModuleElement parentAst) |
void |
build(AST cst,
IModule module) |
Object |
execute(EglTemplate template,
Formatter postprocessor) |
List<ModuleElement> |
getChildren() |
IEglContext |
getContext() |
protected HashMap<String,Class<?>> |
getImportConfiguration() |
List<EglMarkerSection> |
getMarkers() |
List<ParseProblem> |
getParseProblems() |
protected boolean |
hasAnnotation(AST ast,
String name) |
boolean |
parse(String code,
File file) |
boolean |
parse(URI uri) |
protected boolean |
preprocess(AST ast) |
checkImports, clearCache, compile, createLexer, createParser, execute, executeImpl, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMain, getMainRule, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, setContext, setMain, setParentModule, toString
assignAnnotations, assignComment, assignComments, createAst, extractComments, getSourceFile, getSourceUri, invokeMainRule
equals, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
configure, execute, getCompilationContext, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, setContext, setParentModule
protected EglParser eglParser
public EglModule()
public EglModule(IEglContext context)
public void build(AST cst, IModule module)
build
in interface ModuleElement
build
in class EolModule
public boolean parse(String code, File file) throws Exception
parse
in interface IModule
parse
in interface IEolModule
parse
in class AbstractModule
Exception
public boolean parse(URI uri) throws Exception
parse
in interface IModule
parse
in class AbstractModule
Exception
public ModuleElement adapt(AST cst, ModuleElement parentAst)
public List<EglMarkerSection> getMarkers()
getMarkers
in interface IEglModule
public Object execute(EglTemplate template, Formatter postprocessor) throws EglRuntimeException
execute
in interface IEglModule
EglRuntimeException
public List<ParseProblem> getParseProblems()
getParseProblems
in interface IModule
getParseProblems
in interface IEolModule
getParseProblems
in class AbstractModule
public List<ModuleElement> getChildren()
getChildren
in interface ModuleElement
getChildren
in class AbstractModuleElement
protected HashMap<String,Class<?>> getImportConfiguration()
getImportConfiguration
in class EolModule
public IEglContext getContext()
getContext
in interface IEglModule
getContext
in interface IEolModule
getContext
in class EolModule
protected boolean preprocess(AST ast)
Copyright © 2020. All rights reserved.