Package org.eclipse.epsilon.erl
Class ErlModule
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.AbstractModule
org.eclipse.epsilon.eol.EolModule
org.eclipse.epsilon.erl.ErlModule
- All Implemented Interfaces:
IModule
,ModuleElement
,IEolModule
,IErlModule
- Direct Known Subclasses:
AbstractEplModule
,EclModule
,EgxModule
,ErlModuleParallel
,EtlModule
,EvlModule
,FlockModule
,PinsetModule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NamedRuleList<Post>
protected NamedRuleList<Pre>
protected NamedRuleList<Post>
protected NamedRuleList<Pre>
Fields inherited from class org.eclipse.epsilon.eol.EolModule
context, declaredModelDeclarations, declaredOperations, imports, main, modelDeclarations, operations, postOperationStatements
Fields inherited from class org.eclipse.epsilon.eol.AbstractModule
parseProblems, parser, sourceFile, sourceUri
-
Constructor Summary
ConstructorsConstructorDescriptionErlModule
(IErlContext context) Instantiates the module with the specified execution context. -
Method Summary
Modifier and TypeMethodDescriptionadapt
(AST cst, ModuleElement parentAst) void
calculateSuperRules
(List<? extends ExtensibleNamedRule> allRules) protected org.antlr.runtime.Lexer
createLexer
(org.antlr.runtime.ANTLRInputStream inputStream) createParser
(org.antlr.runtime.TokenStream tokenStream) protected void
execute
(List<? extends NamedStatementBlockRule> namedRules) protected void
execute
(List<? extends NamedStatementBlockRule> namedRules, IEolContext context) getPost()
getPre()
void
void
protected Object
Main rule processing logic.Methods inherited from class org.eclipse.epsilon.eol.EolModule
checkImports, clearCache, execute, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getImportsByExtension, getMain, getModelDeclarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, setContext, setImportManager, setMain, setParentModule, 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, execute, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getMain, getModelDeclarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setImportManager, setParentModule
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
-
pre
-
declaredPre
-
post
-
declaredPost
-
-
Constructor Details
-
ErlModule
public ErlModule() -
ErlModule
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 classEolModule
-
createLexer
protected org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream) - Overrides:
createLexer
in classEolModule
-
createParser
- Overrides:
createParser
in classEolModule
-
getMainRule
- Overrides:
getMainRule
in classEolModule
-
adapt
-
getImportConfiguration
- Overrides:
getImportConfiguration
in classEolModule
-
getPost
- Specified by:
getPost
in interfaceIErlModule
-
getPre
- Specified by:
getPre
in interfaceIErlModule
-
getDeclaredPost
- Specified by:
getDeclaredPost
in interfaceIErlModule
-
getDeclaredPre
- Specified by:
getDeclaredPre
in interfaceIErlModule
-
prepareExecution
- Throws:
EolRuntimeException
-
postExecution
- Throws:
EolRuntimeException
-
execute
protected void execute(List<? extends NamedStatementBlockRule> namedRules) throws EolRuntimeException - Throws:
EolRuntimeException
-
execute
protected void execute(List<? extends NamedStatementBlockRule> namedRules, IEolContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
executeImpl
- Overrides:
executeImpl
in classEolModule
- Throws:
EolRuntimeException
-
processRules
Main rule processing logic. Non-abstract for compatibility.- Returns:
- The result of executing this module.
- Throws:
EolRuntimeException
- Since:
- 1.6
-
calculateSuperRules
-
getContext
- Specified by:
getContext
in interfaceIEolModule
- Specified by:
getContext
in interfaceIErlModule
- Overrides:
getContext
in classEolModule
-