Package org.eclipse.epsilon.etl
Class EtlModule
- java.lang.Object
-
- All Implemented Interfaces:
IModule
,ModuleElement
,IEolModule
,IErlModule
,IEtlModule
- Direct Known Subclasses:
EmlModule
,EtlModuleParallel
public class EtlModule extends ErlModule implements IEtlModule
-
-
Field Summary
Fields Modifier and Type Field Description protected NamedRuleList<TransformationRule>
declaredTransformationRules
protected NamedRuleList<TransformationRule>
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 EtlModule()
EtlModule(IEtlContext 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)
IEtlContext
getContext()
java.util.List<TransformationRule>
getDeclaredTransformationRules()
java.util.HashMap<java.lang.String,java.lang.Class<?>>
getImportConfiguration()
java.lang.String
getMainRule()
java.util.List<TransformationRule>
getTransformationRules()
protected boolean
hasLazyRules()
protected void
prepareContext()
protected java.lang.Object
processRules()
Main execution 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, 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.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
-
declaredTransformationRules
protected NamedRuleList<TransformationRule> declaredTransformationRules
-
transformationRules
protected NamedRuleList<TransformationRule> transformationRules
-
-
Constructor Detail
-
EtlModule
public EtlModule()
-
EtlModule
public EtlModule(IEtlContext 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 classErlModule
-
createParser
public EpsilonParser createParser(org.antlr.runtime.TokenStream tokenStream)
- Overrides:
createParser
in classErlModule
-
getMainRule
public java.lang.String getMainRule()
- Overrides:
getMainRule
in classErlModule
-
adapt
public ModuleElement adapt(AST cst, ModuleElement parentAst)
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classErlModule
-
prepareContext
protected void prepareContext() throws EolRuntimeException
- Overrides:
prepareContext
in classEolModule
- Throws:
EolRuntimeException
-
processRules
protected java.lang.Object processRules() throws EolRuntimeException
Main execution logic.- Overrides:
processRules
in classErlModule
- Returns:
- The result of executing this module.
- Throws:
EolRuntimeException
- Since:
- 1.6
-
getImportConfiguration
public java.util.HashMap<java.lang.String,java.lang.Class<?>> getImportConfiguration()
- Overrides:
getImportConfiguration
in classErlModule
-
getContext
public IEtlContext getContext()
- Specified by:
getContext
in interfaceIEolModule
- Specified by:
getContext
in interfaceIErlModule
- Specified by:
getContext
in interfaceIEtlModule
- Overrides:
getContext
in classErlModule
-
getDeclaredTransformationRules
public java.util.List<TransformationRule> getDeclaredTransformationRules()
- Specified by:
getDeclaredTransformationRules
in interfaceIEtlModule
-
hasLazyRules
protected boolean hasLazyRules() throws EolRuntimeException
- Throws:
EolRuntimeException
-
getTransformationRules
public java.util.List<TransformationRule> getTransformationRules()
- Specified by:
getTransformationRules
in interfaceIEtlModule
-
-