Package org.eclipse.epsilon.flock
Class FlockModule
- 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.flock.FlockModule
-
- All Implemented Interfaces:
IModule,ModuleElement,IEolModule,IErlModule,IFlockModule
public class FlockModule extends ErlModule implements IFlockModule
-
-
Field Summary
Fields Modifier and Type Field Description protected MigrationStrategystrategy-
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 FlockModule()FlockModule(IFlockContext 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)protected MigrationStrategycreateMigrationStrategy()EpsilonParsercreateParser(org.antlr.runtime.TokenStream tokenStream)FlockResultexecute()FlockResultexecute(IModel original, IModel migrated)IFlockContextgetContext()java.lang.StringgetMainRule()MigrationStrategygetStrategy()protected FlockResultprocessRules()Main rule processing logic.-
Methods inherited from class org.eclipse.epsilon.erl.ErlModule
calculateSuperRules, execute, execute, executeImpl, getDeclaredPost, getDeclaredPre, getImportConfiguration, getPost, getPre, postExecution, prepareExecution
-
Methods inherited from class org.eclipse.epsilon.eol.EolModule
checkImports, clearCache, compile, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMain, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, 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, 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
-
strategy
protected MigrationStrategy strategy
-
-
Constructor Detail
-
FlockModule
public FlockModule()
-
FlockModule
public FlockModule(IFlockContext context)
-
-
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
-
createMigrationStrategy
protected MigrationStrategy createMigrationStrategy()
-
execute
public FlockResult execute() throws EolRuntimeException
- Specified by:
executein interfaceIEolModule- Overrides:
executein classEolModule- Throws:
EolRuntimeException
-
execute
public FlockResult execute(IModel original, IModel migrated) throws EolRuntimeException
- Specified by:
executein interfaceIFlockModule- Throws:
EolRuntimeException
-
processRules
protected FlockResult processRules() throws EolRuntimeException
Description copied from class:ErlModuleMain rule processing logic. Non-abstract for compatibility.- Overrides:
processRulesin classErlModule- Returns:
- The result of executing this module.
- Throws:
EolRuntimeException
-
getStrategy
public MigrationStrategy getStrategy()
-
getContext
public IFlockContext getContext()
- Specified by:
getContextin interfaceIEolModule- Specified by:
getContextin interfaceIErlModule- Specified by:
getContextin interfaceIFlockModule- Overrides:
getContextin classErlModule
-
-