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>declaredTransformationRulesprotected 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 ModuleElementadapt(AST cst, ModuleElement parentAst)voidbuild(AST cst, IModule module)protected org.antlr.runtime.LexercreateLexer(org.antlr.runtime.ANTLRInputStream inputStream)EpsilonParsercreateParser(org.antlr.runtime.TokenStream tokenStream)IEtlContextgetContext()java.util.List<TransformationRule>getDeclaredTransformationRules()java.util.HashMap<java.lang.String,java.lang.Class<?>>getImportConfiguration()java.lang.StringgetMainRule()java.util.List<TransformationRule>getTransformationRules()protected booleanhasLazyRules()protected voidprepareContext()protected java.lang.ObjectprocessRules()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
-
-
-
-
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:
createLexerin classErlModule
-
createParser
public EpsilonParser createParser(org.antlr.runtime.TokenStream tokenStream)
- Overrides:
createParserin classErlModule
-
getMainRule
public java.lang.String getMainRule()
- Overrides:
getMainRulein classErlModule
-
adapt
public ModuleElement adapt(AST cst, ModuleElement parentAst)
-
build
public void build(AST cst, IModule module)
- Specified by:
buildin interfaceModuleElement- Overrides:
buildin classErlModule
-
prepareContext
protected void prepareContext() throws EolRuntimeException- Overrides:
prepareContextin classEolModule- Throws:
EolRuntimeException
-
processRules
protected java.lang.Object processRules() throws EolRuntimeExceptionMain execution logic.- Overrides:
processRulesin 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:
getImportConfigurationin classErlModule
-
getContext
public IEtlContext getContext()
- Specified by:
getContextin interfaceIEolModule- Specified by:
getContextin interfaceIErlModule- Specified by:
getContextin interfaceIEtlModule- Overrides:
getContextin classErlModule
-
getDeclaredTransformationRules
public java.util.List<TransformationRule> getDeclaredTransformationRules()
- Specified by:
getDeclaredTransformationRulesin interfaceIEtlModule
-
hasLazyRules
protected boolean hasLazyRules() throws EolRuntimeException- Throws:
EolRuntimeException
-
getTransformationRules
public java.util.List<TransformationRule> getTransformationRules()
- Specified by:
getTransformationRulesin interfaceIEtlModule
-
-