Package org.eclipse.epsilon.eml
Class EmlModule
- java.lang.Object
-
- All Implemented Interfaces:
IModule
,ModuleElement
,IEmlModule
,IEolModule
,IErlModule
,IEtlModule
public class EmlModule extends EtlModule implements IEmlModule
-
-
Field Summary
Fields Modifier and Type Field Description protected NamedRuleList<MergeRule>
declaredMergeRules
protected NamedRuleList<MergeRule>
mergeRules
-
Fields inherited from class org.eclipse.epsilon.etl.EtlModule
declaredTransformationRules, transformationRules
-
Fields inherited from class org.eclipse.epsilon.erl.ErlModule
declaredPost, declaredPre, post, 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 EmlModule()
EmlModule(IEmlContext context)
Instantiates the module with the specified execution context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleElement
adapt(AST cst, ModuleElement parentAst)
void
build(AST cst, IModule module)
protected org.antlr.runtime.Lexer
createLexer(org.antlr.runtime.ANTLRInputStream inputStream)
EpsilonParser
createParser(org.antlr.runtime.TokenStream tokenStream)
IEmlContext
getContext()
java.util.List<MergeRule>
getDeclaredMergeRules()
java.util.HashMap<java.lang.String,java.lang.Class<?>>
getImportConfiguration()
java.lang.String
getMainRule()
java.util.List<MergeRule>
getMergeRules()
protected void
prepareContext()
protected java.lang.Object
processRules()
Main execution logic.-
Methods inherited from class org.eclipse.epsilon.etl.EtlModule
getDeclaredTransformationRules, getTransformationRules, hasLazyRules
-
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, compile, execute, getCompilationContext, 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, 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
-
Methods inherited from interface org.eclipse.epsilon.erl.IErlModule
getDeclaredPost, getDeclaredPre, getPost, getPre
-
Methods inherited from interface org.eclipse.epsilon.etl.IEtlModule
getDeclaredTransformationRules, getTransformationRules
-
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
compile, createAst, getSourceUri, parse, parse, parse, parse, parse
-
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
declaredMergeRules
protected NamedRuleList<MergeRule> declaredMergeRules
-
mergeRules
protected NamedRuleList<MergeRule> mergeRules
-
-
Constructor Detail
-
EmlModule
public EmlModule()
-
EmlModule
public EmlModule(IEmlContext 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:
createLexer
in classEtlModule
-
createParser
public EpsilonParser createParser(org.antlr.runtime.TokenStream tokenStream)
- Overrides:
createParser
in classEtlModule
-
getMainRule
public java.lang.String getMainRule()
- Overrides:
getMainRule
in classEtlModule
-
getImportConfiguration
public java.util.HashMap<java.lang.String,java.lang.Class<?>> getImportConfiguration()
- Overrides:
getImportConfiguration
in classEtlModule
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classEtlModule
-
prepareContext
protected void prepareContext() throws EolRuntimeException
- Overrides:
prepareContext
in classEtlModule
- Throws:
EolRuntimeException
-
processRules
protected java.lang.Object processRules() throws EolRuntimeException
Main execution logic.- Overrides:
processRules
in classEtlModule
- Returns:
- The result of executing this module.
- Throws:
EolRuntimeException
- Since:
- 1.6
-
getContext
public IEmlContext getContext()
- Specified by:
getContext
in interfaceIEmlModule
- Specified by:
getContext
in interfaceIEolModule
- Specified by:
getContext
in interfaceIErlModule
- Specified by:
getContext
in interfaceIEtlModule
- Overrides:
getContext
in classEtlModule
-
adapt
public ModuleElement adapt(AST cst, ModuleElement parentAst)
-
getDeclaredMergeRules
public java.util.List<MergeRule> getDeclaredMergeRules()
- Specified by:
getDeclaredMergeRules
in interfaceIEmlModule
-
getMergeRules
public java.util.List<MergeRule> getMergeRules()
- Specified by:
getMergeRules
in interfaceIEmlModule
-
-