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 AST |
ast |
protected IEglContext |
context |
protected EglLexer |
lexer |
protected EglParser |
parser |
protected EglPreprocessorModule |
preprocessorModule |
protected Reader |
reader |
compilationContext, declaredModelDeclarations, declaredOperations, imports, main, modelDeclarations, operations, postOperationStatementsparseProblems, sourceFile, sourceUri| Constructor and Description |
|---|
EglModule() |
EglModule(IEglContext context) |
| Modifier and Type | Method and Description |
|---|---|
ModuleElement |
adapt(AST cst,
ModuleElement parentAst) |
void |
buildModel() |
EglResult |
execute(EglTemplate template,
Formatter postprocessor) |
IEglContext |
getContext() |
List<EglMarkerSection> |
getMarkers() |
List<ModuleElement> |
getModuleElements() |
OperationList |
getOperations() |
List<ParseProblem> |
getParseProblems() |
EglPreprocessorModule |
getPreprocessorModule() |
boolean |
parse(File file) |
boolean |
parse(String code) |
boolean |
parse(String code,
File file) |
boolean |
parse(URI uri) |
void |
setContext(IEolContext context) |
build, checkImports, clearCache, compile, createLexer, createParser, execute, executeImpl, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImportConfiguration, getImports, getImportsByExtension, getMain, getMainRule, getModelDelcarations, getParentModule, getPostOperationStatements, prepareContext, setMain, setParentModule, toStringassignAnnotations, assignComment, assignComments, createAst, extractComments, getSourceFile, getSourceUri, invokeMainRulegetChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUriclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getParentModule, getPostOperationStatements, setParentModulecompile, createAst, getSourceUriprotected EglParser parser
protected EglLexer lexer
protected IEglContext context
protected Reader reader
protected EglPreprocessorModule preprocessorModule
protected AST ast
public EglModule()
public EglModule(IEglContext context)
public boolean parse(String code) throws Exception
parse in interface IModuleparse in class AbstractModuleExceptionpublic boolean parse(String code, File file) throws Exception
parse in interface IModuleparse in interface IEolModuleparse in class AbstractModuleExceptionpublic boolean parse(File file) throws Exception
parse in interface IModuleparse in class AbstractModuleExceptionpublic boolean parse(URI uri) throws Exception
parse in interface IModuleparse in class AbstractModuleExceptionpublic ModuleElement adapt(AST cst, ModuleElement parentAst)
public EglPreprocessorModule getPreprocessorModule()
getPreprocessorModule in interface IEglModulepublic List<EglMarkerSection> getMarkers()
getMarkers in interface IEglModulepublic EglResult execute(EglTemplate template, Formatter postprocessor) throws EglRuntimeException
execute in interface IEglModuleEglRuntimeExceptionpublic IEglContext getContext()
getContext in interface IEglModulegetContext in interface IEolModulegetContext in class EolModulepublic List<ParseProblem> getParseProblems()
getParseProblems in interface IModulegetParseProblems in interface IEolModulegetParseProblems in class AbstractModulepublic OperationList getOperations()
getOperations in interface IEolModulegetOperations in class EolModulepublic List<ModuleElement> getModuleElements()
public void setContext(IEolContext context)
setContext in interface IEolModulesetContext in class EolModuleCopyright © 2018. All rights reserved.