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
public class ErlModule extends EolModule implements IErlModule
-
-
Field Summary
Fields Modifier and Type Field Description protected NamedRuleList<Post>declaredPostprotected NamedRuleList<Pre>declaredPreprotected NamedRuleList<Post>postprotected NamedRuleList<Pre>pre-
Fields inherited from class org.eclipse.epsilon.eol.EolModule
compilationContext, context, declaredModelDeclarations, declaredOperations, imports, main, modelDeclarations, operations, postOperationStatements
-
Fields inherited from class org.eclipse.epsilon.eol.AbstractModule
parseProblems, parser, sourceFile, sourceUri
-
-
Constructor Summary
Constructors Constructor Description ErlModule()ErlModule(IErlContext context)Instantiates the module with the specified execution context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleElementadapt(AST cst, ModuleElement parentAst)voidbuild(AST cst, IModule module)java.util.List<ParseProblem>calculateSuperRules(java.util.List<? extends ExtensibleNamedRule> allRules)protected org.antlr.runtime.LexercreateLexer(org.antlr.runtime.ANTLRInputStream inputStream)EpsilonParsercreateParser(org.antlr.runtime.TokenStream tokenStream)protected voidexecute(java.util.List<? extends NamedStatementBlockRule> namedRules)protected voidexecute(java.util.List<? extends NamedStatementBlockRule> namedRules, IEolContext context)java.lang.ObjectexecuteImpl()IErlContextgetContext()java.util.List<Post>getDeclaredPost()java.util.List<Pre>getDeclaredPre()java.util.HashMap<java.lang.String,java.lang.Class<?>>getImportConfiguration()java.lang.StringgetMainRule()java.util.List<Post>getPost()java.util.List<Pre>getPre()protected voidpostExecution()protected voidprepareExecution()protected java.lang.ObjectprocessRules()Main rule processing logic.-
Methods inherited from class org.eclipse.epsilon.eol.EolModule
checkImports, clearCache, compile, execute, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMain, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, setContext, 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, 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, getCompilationContext, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setParentModule
-
-
-
-
Field Detail
-
pre
protected NamedRuleList<Pre> pre
-
declaredPre
protected NamedRuleList<Pre> declaredPre
-
post
protected NamedRuleList<Post> post
-
declaredPost
protected NamedRuleList<Post> declaredPost
-
-
Constructor Detail
-
ErlModule
public ErlModule()
-
ErlModule
public ErlModule(IErlContext context)
Instantiates the module with the specified execution context.- Parameters:
context- The execution context- Since:
- 1.6
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
buildin interfaceModuleElement- Overrides:
buildin classEolModule
-
createLexer
protected org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream)
- Overrides:
createLexerin classEolModule
-
createParser
public EpsilonParser createParser(org.antlr.runtime.TokenStream tokenStream)
- Overrides:
createParserin classEolModule
-
getMainRule
public java.lang.String getMainRule()
- Overrides:
getMainRulein classEolModule
-
adapt
public ModuleElement adapt(AST cst, ModuleElement parentAst)
-
getImportConfiguration
public java.util.HashMap<java.lang.String,java.lang.Class<?>> getImportConfiguration()
- Overrides:
getImportConfigurationin classEolModule
-
getPost
public java.util.List<Post> getPost()
- Specified by:
getPostin interfaceIErlModule
-
getPre
public java.util.List<Pre> getPre()
- Specified by:
getPrein interfaceIErlModule
-
getDeclaredPost
public java.util.List<Post> getDeclaredPost()
- Specified by:
getDeclaredPostin interfaceIErlModule
-
getDeclaredPre
public java.util.List<Pre> getDeclaredPre()
- Specified by:
getDeclaredPrein interfaceIErlModule
-
prepareExecution
protected void prepareExecution() throws EolRuntimeException- Throws:
EolRuntimeException
-
postExecution
protected void postExecution() throws EolRuntimeException- Throws:
EolRuntimeException
-
execute
protected void execute(java.util.List<? extends NamedStatementBlockRule> namedRules) throws EolRuntimeException
- Throws:
EolRuntimeException
-
execute
protected void execute(java.util.List<? extends NamedStatementBlockRule> namedRules, IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
executeImpl
public java.lang.Object executeImpl() throws EolRuntimeException- Overrides:
executeImplin classEolModule- Throws:
EolRuntimeException
-
processRules
protected java.lang.Object processRules() throws EolRuntimeExceptionMain rule processing logic. Non-abstract for compatibility.- Returns:
- The result of executing this module.
- Throws:
EolRuntimeException- Since:
- 1.6
-
calculateSuperRules
public java.util.List<ParseProblem> calculateSuperRules(java.util.List<? extends ExtensibleNamedRule> allRules)
-
getContext
public IErlContext getContext()
- Specified by:
getContextin interfaceIEolModule- Specified by:
getContextin interfaceIErlModule- Overrides:
getContextin classEolModule
-
-