Package org.eclipse.epsilon.etl
Class EtlModule
-
- 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
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()
List<TransformationRule>
getDeclaredTransformationRules()
HashMap<String,Class<?>>
getImportConfiguration()
String
getMainRule()
List<TransformationRule>
getTransformationRules()
protected boolean
hasLazyRules()
protected void
prepareContext()
protected 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, execute, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMain, getModelDeclarations, 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.eol.IEolModule
configure, execute, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDeclarations, 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
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 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 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 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 HashMap<String,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 List<TransformationRule> getDeclaredTransformationRules()
- Specified by:
getDeclaredTransformationRules
in interfaceIEtlModule
-
hasLazyRules
protected boolean hasLazyRules() throws EolRuntimeException
- Throws:
EolRuntimeException
-
getTransformationRules
public List<TransformationRule> getTransformationRules()
- Specified by:
getTransformationRules
in interfaceIEtlModule
-
-