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,ExecutionQueueModule,HutnModule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IEolContextprotected List<ModelDeclaration>protected OperationListprotected StatementBlockprotected Set<ModelDeclaration>protected OperationListFields 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) voidvoidClear all cached results and type information, and all extended properties.Creates an object that implements debugging (i.e.protected org.antlr.runtime.LexercreateLexer(org.antlr.runtime.ANTLRInputStream inputStream) createParser(org.antlr.runtime.TokenStream tokenStream) execute()Returns an object that caches the imports made by a module.getMain()protected voidprotected voidvoidsetContext(IEolContext context) voidsetImportManager(IImportManager importManager) Sets the object that will cache imports to be done by a module.voidsetMain(StatementBlock main) voidsetParentModule(IEolModule parent) toString()Methods inherited from class org.eclipse.epsilon.eol.AbstractModule
assignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceFile, getSourceUri, invokeMainRule, parse, parseMethods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUriMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.eol.IEolModule
configure, getConfigurationProperties, getParseProblems, parseMethods inherited from interface org.eclipse.epsilon.common.module.IModule
createAst, getSourceUri, parse, parse, parse, parse, parseMethods 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:
buildin interfaceModuleElement- Overrides:
buildin classAbstractModuleElement
-
adapt
- Specified by:
adaptin classAbstractModule
-
createLexer
protected org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream) - Specified by:
createLexerin classAbstractModule
-
createParser
- Specified by:
createParserin classAbstractModule
-
getMainRule
- Specified by:
getMainRulein classAbstractModule
-
getDeclaredOperations
- Specified by:
getDeclaredOperationsin interfaceIEolModule
-
getImportConfiguration
-
prepareContext
- Throws:
EolRuntimeException
-
getImports
- Specified by:
getImportsin interfaceIEolModule
-
toString
- Overrides:
toStringin classAbstractModuleElement
-
getModelDeclarations
- Specified by:
getModelDeclarationsin interfaceIEolModule
-
getOperations
- Specified by:
getOperationsin interfaceIEolModule
-
loadImports
protected void loadImports() -
getDeclaredModelDeclarations
- Specified by:
getDeclaredModelDeclarationsin interfaceIEolModule
-
getParentModule
- Specified by:
getParentModulein interfaceIEolModule
-
setParentModule
- Specified by:
setParentModulein interfaceIEolModule
-
execute
- Specified by:
executein interfaceIEolModule- Throws:
EolRuntimeException
-
executeImpl
- Throws:
EolRuntimeException
-
getPostOperationStatements
- Specified by:
getPostOperationStatementsin interfaceIEolModule
-
getMain
- Specified by:
getMainin interfaceIEolModule
-
setMain
-
getContext
- Specified by:
getContextin interfaceIEolModule
-
setContext
- Specified by:
setContextin 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
Description copied from interface:IEolModuleReturns an object that caches the imports made by a module.- Specified by:
getImportManagerin interfaceIEolModule
-
setImportManager
Description copied from interface:IEolModuleSets the object that will cache imports to be done by a module.- Specified by:
setImportManagerin interfaceIEolModule
-
createDebugger
Description copied from interface:IEolModuleCreates an object that implements debugging (i.e. breakpoints and stepping) for this module.- Specified by:
createDebuggerin interfaceIEolModule
-