Package org.eclipse.epsilon.ecl
Class EclModule
- All Implemented Interfaces:
IModule
,ModuleElement
,IEclModule
,IEolModule
,IErlModule
- Direct Known Subclasses:
EclModuleParallel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NamedRuleList<MatchRule>
protected NamedRuleList<MatchRule>
Fields inherited from class org.eclipse.epsilon.erl.ErlModule
declaredPost, declaredPre, post, 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
ConstructorsConstructorDescriptionEclModule
(IEclContext context) Instantiates the module with the specified execution context. -
Method Summary
Modifier and TypeMethodDescriptionadapt
(AST cst, ModuleElement parentAst) void
protected org.antlr.runtime.Lexer
createLexer
(org.antlr.runtime.ANTLRInputStream inputStream) createParser
(org.antlr.runtime.TokenStream tokenStream) execute()
protected void
matchAllRules
(boolean greedy) void
protected void
protected MatchTrace
Main rule processing logic.Methods inherited from class org.eclipse.epsilon.erl.ErlModule
calculateSuperRules, execute, execute, executeImpl, getDeclaredPost, getDeclaredPre, getPost, getPre, postExecution, prepareExecution
Methods inherited from class org.eclipse.epsilon.eol.EolModule
checkImports, clearCache, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getImportsByExtension, getMain, getModelDeclarations, getOperations, getParentModule, getPostOperationStatements, 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.ecl.IEclModule
getRulesFor, match
Methods inherited from interface org.eclipse.epsilon.eol.IEolModule
configure, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getMain, getModelDeclarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setImportManager, setParentModule
Methods inherited from interface org.eclipse.epsilon.erl.IErlModule
getDeclaredPost, getDeclaredPre, getPost, getPre
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
-
matchRules
-
declaredMatchRules
-
-
Constructor Details
-
EclModule
public EclModule() -
EclModule
Instantiates the module with the specified execution context.- Parameters:
context
- The execution context- Since:
- 1.6
-
-
Method Details
-
createLexer
protected org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream) - Overrides:
createLexer
in classErlModule
-
createParser
- Overrides:
createParser
in classErlModule
-
getMainRule
- Overrides:
getMainRule
in classErlModule
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classErlModule
-
adapt
-
getImportConfiguration
- Overrides:
getImportConfiguration
in classErlModule
-
getMatchRules
- Specified by:
getMatchRules
in interfaceIEclModule
-
prepareContext
- Overrides:
prepareContext
in classEolModule
- Throws:
EolRuntimeException
-
execute
- Specified by:
execute
in interfaceIEclModule
- Specified by:
execute
in interfaceIEolModule
- Overrides:
execute
in classEolModule
- Throws:
EolRuntimeException
-
processRules
Description copied from class:ErlModule
Main rule processing logic. Non-abstract for compatibility.- Overrides:
processRules
in classErlModule
- Returns:
- The result of executing this module.
- Throws:
EolRuntimeException
-
matchModels
- Specified by:
matchModels
in interfaceIEclModule
- Throws:
EolRuntimeException
-
matchAllRules
- Throws:
EolRuntimeException
-
getContext
- Specified by:
getContext
in interfaceIEclModule
- Specified by:
getContext
in interfaceIEolModule
- Specified by:
getContext
in interfaceIErlModule
- Overrides:
getContext
in classErlModule
-
getDeclaredMatchRules
- Specified by:
getDeclaredMatchRules
in interfaceIEclModule
-