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, postOperationStatementsparseProblems, 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, toStringassignAnnotations, assignComment, assignComments, createAst, extractComments, getSourceFile, getSourceUri, invokeMainRuleequals, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUriclone, finalize, getClass, notify, notifyAll, wait, wait, waitconfigure, execute, getCompilationContext, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, setContext, setParentModuleprotected EglParser eglParser
public EglModule()
public EglModule(IEglContext context)
public void build(AST cst, IModule module)
build in interface ModuleElementbuild in class EolModulepublic boolean parse(String code, File file) throws Exception
parse in interface IModuleparse in interface IEolModuleparse in class AbstractModuleExceptionpublic boolean parse(URI uri) throws Exception
parse in interface IModuleparse in class AbstractModuleExceptionpublic ModuleElement adapt(AST cst, ModuleElement parentAst)
public List<EglMarkerSection> getMarkers()
getMarkers in interface IEglModulepublic Object execute(EglTemplate template, Formatter postprocessor) throws EglRuntimeException
execute in interface IEglModuleEglRuntimeExceptionpublic List<ParseProblem> getParseProblems()
getParseProblems in interface IModulegetParseProblems in interface IEolModulegetParseProblems in class AbstractModulepublic List<ModuleElement> getChildren()
getChildren in interface ModuleElementgetChildren in class AbstractModuleElementprotected HashMap<String,Class<?>> getImportConfiguration()
getImportConfiguration in class EolModulepublic IEglContext getContext()
getContext in interface IEglModulegetContext in interface IEolModulegetContext in class EolModuleprotected boolean preprocess(AST ast)
Copyright © 2020. All rights reserved.