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, postOperationStatementsFields 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) voidcalculateSuperRules(List<? extends ExtensibleNamedRule> allRules) protected org.antlr.runtime.LexercreateLexer(org.antlr.runtime.ANTLRInputStream inputStream) createParser(org.antlr.runtime.TokenStream tokenStream) protected voidexecute(List<? extends NamedStatementBlockRule> namedRules) protected voidexecute(List<? extends NamedStatementBlockRule> namedRules, IEolContext context) getPost()getPre()voidvoidprotected ObjectMain rule processing logic.Methods inherited from class org.eclipse.epsilon.eol.EolModule
checkImports, clearCache, createDebugger, execute, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getImportsByExtension, getMain, getModelDeclarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, setContext, setImportManager, setMain, setParentModule, toStringMethods 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, createDebugger, execute, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getMain, getModelDeclarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setImportManager, setParentModuleMethods 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
-
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:
buildin interfaceModuleElement- Overrides:
buildin classEolModule
-
createLexer
protected org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream) - Overrides:
createLexerin classEolModule
-
createParser
- Overrides:
createParserin classEolModule
-
getMainRule
- Overrides:
getMainRulein classEolModule
-
adapt
-
getImportConfiguration
- Overrides:
getImportConfigurationin classEolModule
-
getPost
- Specified by:
getPostin interfaceIErlModule
-
getPre
- Specified by:
getPrein interfaceIErlModule
-
getDeclaredPost
- Specified by:
getDeclaredPostin interfaceIErlModule
-
getDeclaredPre
- Specified by:
getDeclaredPrein 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:
executeImplin 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:
getContextin interfaceIEolModule- Specified by:
getContextin interfaceIErlModule- Overrides:
getContextin classEolModule
-