Package org.eclipse.epsilon.eol
Class EolModule
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.AbstractModule
org.eclipse.epsilon.eol.EolModule
- All Implemented Interfaces:
IModule
,ModuleElement
,IEolModule
- Direct Known Subclasses:
EglModule
,EolModuleParallel
,ErlModule
,EUnitModule
,EwlModule
,HutnModule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IEolContext
protected List<ModelDeclaration>
protected OperationList
protected StatementBlock
protected Set<ModelDeclaration>
protected OperationList
Fields inherited from class org.eclipse.epsilon.eol.AbstractModule
parseProblems, parser, sourceFile, sourceUri
-
Constructor Summary
ConstructorsConstructorDescriptionEolModule
(IEolContext context) Instantiates the module with the specified execution context. -
Method Summary
Modifier and TypeMethodDescriptionadapt
(AST cst, ModuleElement parentAst) void
protected void
checkImports
(AST cst) void
Clear all cached results and type information, and all extended properties.protected org.antlr.runtime.Lexer
createLexer
(org.antlr.runtime.ANTLRInputStream inputStream) createParser
(org.antlr.runtime.TokenStream tokenStream) execute()
protected Collection<Import>
getImportsByExtension
(AST cst, String extension, Class<? extends IModule> moduleImplClass) getMain()
protected void
void
setContext
(IEolContext context) void
setImportManager
(IImportManager importManager) void
setMain
(StatementBlock main) void
setParentModule
(IEolModule parent) toString()
Methods inherited from class org.eclipse.epsilon.eol.AbstractModule
assignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceFile, getSourceUri, invokeMainRule, parse, parse
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.epsilon.eol.IEolModule
configure, getConfigurationProperties, getParseProblems, parse
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
createAst, getSourceUri, parse, parse, parse, parse, parse
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Field Details
-
main
-
context
-
postOperationStatements
-
declaredOperations
-
imports
-
operations
-
declaredModelDeclarations
-
modelDeclarations
-
-
Constructor Details
-
EolModule
public EolModule() -
EolModule
Instantiates the module with the specified execution context.- Parameters:
context
- The execution context- Since:
- 1.6
-
-
Method Details
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
adapt
- Specified by:
adapt
in classAbstractModule
-
createLexer
protected org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream) - Specified by:
createLexer
in classAbstractModule
-
createParser
- Specified by:
createParser
in classAbstractModule
-
getMainRule
- Specified by:
getMainRule
in classAbstractModule
-
getDeclaredOperations
- Specified by:
getDeclaredOperations
in interfaceIEolModule
-
getImportConfiguration
-
prepareContext
- Throws:
EolRuntimeException
-
getImports
- Specified by:
getImports
in interfaceIEolModule
-
toString
- Overrides:
toString
in classAbstractModuleElement
-
getModelDeclarations
- Specified by:
getModelDeclarations
in interfaceIEolModule
-
getOperations
- Specified by:
getOperations
in interfaceIEolModule
-
getImportsByExtension
-
checkImports
-
getDeclaredModelDeclarations
- Specified by:
getDeclaredModelDeclarations
in interfaceIEolModule
-
getParentModule
- Specified by:
getParentModule
in interfaceIEolModule
-
setParentModule
- Specified by:
setParentModule
in interfaceIEolModule
-
execute
- Specified by:
execute
in interfaceIEolModule
- Throws:
EolRuntimeException
-
executeImpl
- Throws:
EolRuntimeException
-
getPostOperationStatements
- Specified by:
getPostOperationStatements
in interfaceIEolModule
-
getMain
- Specified by:
getMain
in interfaceIEolModule
-
setMain
-
getContext
- Specified by:
getContext
in interfaceIEolModule
-
setContext
- Specified by:
setContext
in interfaceIEolModule
-
clearCache
public void clearCache()Clear all cached results and type information, and all extended properties. Useful for rerunning the same EolModule with different sets of models, without having to parse it again. -
getImportManager
- Specified by:
getImportManager
in interfaceIEolModule
-
setImportManager
- Specified by:
setImportManager
in interfaceIEolModule
-