Package org.eclipse.epsilon.ecl
Class EclModule
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.AbstractModule
-
- org.eclipse.epsilon.eol.EolModule
-
- org.eclipse.epsilon.erl.ErlModule
-
- org.eclipse.epsilon.ecl.EclModule
-
- All Implemented Interfaces:
org.eclipse.epsilon.common.module.IModule,org.eclipse.epsilon.common.module.ModuleElement,IEclModule,IEolModule,IErlModule
- Direct Known Subclasses:
EclModuleParallel
public class EclModule extends ErlModule implements IEclModule
-
-
Field Summary
Fields Modifier and Type Field Description protected NamedRuleList<MatchRule>declaredMatchRulesprotected NamedRuleList<MatchRule>matchRules-
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
Constructors Constructor Description EclModule()EclModule(IEclContext context)Instantiates the module with the specified execution context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.epsilon.common.module.ModuleElementadapt(org.eclipse.epsilon.common.parse.AST cst, org.eclipse.epsilon.common.module.ModuleElement parentAst)voidbuild(org.eclipse.epsilon.common.parse.AST cst, org.eclipse.epsilon.common.module.IModule module)protected org.antlr.runtime.LexercreateLexer(org.antlr.runtime.ANTLRInputStream inputStream)org.eclipse.epsilon.common.parse.EpsilonParsercreateParser(org.antlr.runtime.TokenStream tokenStream)MatchTraceexecute()IEclContextgetContext()List<MatchRule>getDeclaredMatchRules()HashMap<String,Class<?>>getImportConfiguration()StringgetMainRule()List<MatchRule>getMatchRules()protected voidmatchAllRules(boolean greedy)voidmatchModels()protected voidprepareContext()protected MatchTraceprocessRules()-
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, getImports, getImportsByExtension, getMain, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, 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, 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, getImports, getMain, getModelDelcarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setParentModule
-
Methods inherited from interface org.eclipse.epsilon.erl.IErlModule
getDeclaredPost, getDeclaredPre, getPost, getPre
-
-
-
-
Field Detail
-
matchRules
protected NamedRuleList<MatchRule> matchRules
-
declaredMatchRules
protected final NamedRuleList<MatchRule> declaredMatchRules
-
-
Constructor Detail
-
EclModule
public EclModule()
-
EclModule
public EclModule(IEclContext context)
Instantiates the module with the specified execution context.- Parameters:
context- The execution context- Since:
- 1.6
-
-
Method Detail
-
createLexer
protected org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream)
- Overrides:
createLexerin classErlModule
-
createParser
public org.eclipse.epsilon.common.parse.EpsilonParser createParser(org.antlr.runtime.TokenStream tokenStream)
- Overrides:
createParserin classErlModule
-
getMainRule
public String getMainRule()
- Overrides:
getMainRulein classErlModule
-
build
public void build(org.eclipse.epsilon.common.parse.AST cst, org.eclipse.epsilon.common.module.IModule module)
-
adapt
public org.eclipse.epsilon.common.module.ModuleElement adapt(org.eclipse.epsilon.common.parse.AST cst, org.eclipse.epsilon.common.module.ModuleElement parentAst)
-
getImportConfiguration
public HashMap<String,Class<?>> getImportConfiguration()
- Overrides:
getImportConfigurationin classErlModule
-
getMatchRules
public List<MatchRule> getMatchRules()
- Specified by:
getMatchRulesin interfaceIEclModule
-
prepareContext
protected void prepareContext() throws EolRuntimeException- Overrides:
prepareContextin classEolModule- Throws:
EolRuntimeException
-
execute
public MatchTrace execute() throws EolRuntimeException
- Specified by:
executein interfaceIEclModule- Specified by:
executein interfaceIEolModule- Overrides:
executein classEolModule- Throws:
EolRuntimeException
-
processRules
protected MatchTrace processRules() throws EolRuntimeException
- Overrides:
processRulesin classErlModule- Throws:
EolRuntimeException
-
matchModels
public void matchModels() throws EolRuntimeException- Specified by:
matchModelsin interfaceIEclModule- Throws:
EolRuntimeException
-
matchAllRules
protected void matchAllRules(boolean greedy) throws EolRuntimeException- Throws:
EolRuntimeException
-
getContext
public IEclContext getContext()
- Specified by:
getContextin interfaceIEclModule- Specified by:
getContextin interfaceIEolModule- Specified by:
getContextin interfaceIErlModule- Overrides:
getContextin classErlModule
-
getDeclaredMatchRules
public List<MatchRule> getDeclaredMatchRules()
- Specified by:
getDeclaredMatchRulesin interfaceIEclModule
-
-