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, postOperationStatements
parseProblems, 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, toString
assignAnnotations, assignComment, assignComments, createAst, extractComments, getSourceFile, getSourceUri, invokeMainRule
getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getParentModule, getPostOperationStatements, setParentModule
compile, createAst, getSourceUri
protected 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 IModule
parse
in class AbstractModule
Exception
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(File file) throws Exception
parse
in interface IModule
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 EglPreprocessorModule getPreprocessorModule()
getPreprocessorModule
in interface IEglModule
public List<EglMarkerSection> getMarkers()
getMarkers
in interface IEglModule
public EglResult execute(EglTemplate template, Formatter postprocessor) throws EglRuntimeException
execute
in interface IEglModule
EglRuntimeException
public IEglContext getContext()
getContext
in interface IEglModule
getContext
in interface IEolModule
getContext
in class EolModule
public List<ParseProblem> getParseProblems()
getParseProblems
in interface IModule
getParseProblems
in interface IEolModule
getParseProblems
in class AbstractModule
public OperationList getOperations()
getOperations
in interface IEolModule
getOperations
in class EolModule
public List<ModuleElement> getModuleElements()
public void setContext(IEolContext context)
setContext
in interface IEolModule
setContext
in class EolModule
Copyright © 2018. All rights reserved.