Class FlockContext
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.context.EolContext
-
- org.eclipse.epsilon.erl.execute.context.ErlContext
-
- org.eclipse.epsilon.flock.execute.context.FlockContext
-
- All Implemented Interfaces:
IEolContext
,IErlContext
,IFlockContext
public class FlockContext extends ErlContext implements IFlockContext
-
-
Field Summary
Fields Modifier and Type Field Description protected Model
migratedModel
protected Model
originalModel
-
Fields inherited from class org.eclipse.epsilon.eol.execute.context.EolContext
assertionsEnabled, asyncStatementsQueue, classpathNativeTypeDelegate, errorStream, executorFactory, extendedProperties, frameStack, introspectionManager, methodContributorRegistry, modelRepository, module, nativeTypeDelegates, operationFactory, outputStream, prettyPrinterManager, profilingEnabled, userInput, warningStream
-
-
Constructor Summary
Constructors Constructor Description FlockContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlockResult
execute(MigrationStrategy strategy)
ConservativeCopyContext
getConservativeCopyContext()
EquivalenceEstablishmentContext
getEquivalenceEstablishmentContext()
Model
getMigratedModel()
MigrationStrategyCheckingContext
getMigrationStrategyCheckingContext()
IFlockModule
getModule()
Casts the IModule to IErlModuleModel
getOriginalModel()
void
setMigratedModel(int indexInRepository)
void
setMigratedModel(IModel migratedModel)
void
setOriginalModel(int indexInRepository)
void
setOriginalModel(IModel originalModel)
-
Methods inherited from class org.eclipse.epsilon.erl.execute.context.ErlContext
getExecutorFactory, setExecutorFactory, setProfilingEnabled
-
Methods inherited from class org.eclipse.epsilon.eol.execute.context.EolContext
dispose, getAsyncStatementsQueue, getErrorStream, getExtendedProperties, getFrameStack, getIntrospectionManager, getModelRepository, getNativeTypeDelegates, getOperationContributorRegistry, getOperationFactory, getOutputStream, getPrettyPrinterManager, getUserInput, getWarningStream, isAssertionsEnabled, isProfilingEnabled, setAssertionsEnabled, setErrorStream, setExtendedProperties, setFrameStack, setIntrospectionManager, setModelRepository, setModule, setNativeTypeDelegates, setOperationFactory, setOutputStream, setPrettyPrinterManager, setUserInput, setWarningStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.eol.execute.context.IEolContext
dispose, getAsyncStatementsQueue, getErrorStream, getExtendedProperties, getFrameStack, getIntrospectionManager, getModelRepository, getNativeTypeDelegates, getOperationContributorRegistry, getOperationFactory, getOutputStream, getPrettyPrinterManager, getUserInput, getWarningStream, isAssertionsEnabled, isProfilingEnabled, setAssertionsEnabled, setErrorStream, setExecutorFactory, setExtendedProperties, setFrameStack, setIntrospectionManager, setModelRepository, setModule, setNativeTypeDelegates, setOperationFactory, setOutputStream, setPrettyPrinterManager, setProfilingEnabled, setUserInput, setWarningStream
-
Methods inherited from interface org.eclipse.epsilon.erl.execute.context.IErlContext
getExecutorFactory
-
-
-
-
Method Detail
-
getOriginalModel
public Model getOriginalModel()
-
getMigratedModel
public Model getMigratedModel()
-
setOriginalModel
public void setOriginalModel(IModel originalModel) throws FlockUnsupportedModelException
- Specified by:
setOriginalModel
in interfaceIFlockContext
- Throws:
FlockUnsupportedModelException
-
setMigratedModel
public void setMigratedModel(IModel migratedModel) throws FlockUnsupportedModelException
- Specified by:
setMigratedModel
in interfaceIFlockContext
- Throws:
FlockUnsupportedModelException
-
setOriginalModel
public void setOriginalModel(int indexInRepository) throws FlockUnsupportedModelException
- Specified by:
setOriginalModel
in interfaceIFlockContext
- Throws:
FlockUnsupportedModelException
-
setMigratedModel
public void setMigratedModel(int indexInRepository) throws FlockUnsupportedModelException
- Specified by:
setMigratedModel
in interfaceIFlockContext
- Throws:
FlockUnsupportedModelException
-
execute
public FlockResult execute(MigrationStrategy strategy) throws FlockRuntimeException
- Specified by:
execute
in interfaceIFlockContext
- Throws:
FlockRuntimeException
-
getEquivalenceEstablishmentContext
public EquivalenceEstablishmentContext getEquivalenceEstablishmentContext()
- Specified by:
getEquivalenceEstablishmentContext
in interfaceIFlockContext
-
getMigrationStrategyCheckingContext
public MigrationStrategyCheckingContext getMigrationStrategyCheckingContext()
- Specified by:
getMigrationStrategyCheckingContext
in interfaceIFlockContext
-
getConservativeCopyContext
public ConservativeCopyContext getConservativeCopyContext()
- Specified by:
getConservativeCopyContext
in interfaceIFlockContext
-
getModule
public IFlockModule getModule()
Description copied from interface:IErlContext
Casts the IModule to IErlModule- Specified by:
getModule
in interfaceIEolContext
- Specified by:
getModule
in interfaceIErlContext
- Overrides:
getModule
in classErlContext
- See Also:
IEolContext.getModule()
-
-