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 ModelmigratedModelprotected ModeloriginalModel-
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 FlockResultexecute(MigrationStrategy strategy)ConservativeCopyContextgetConservativeCopyContext()EquivalenceEstablishmentContextgetEquivalenceEstablishmentContext()ModelgetMigratedModel()MigrationStrategyCheckingContextgetMigrationStrategyCheckingContext()IFlockModulegetModule()Casts the IModule to IErlModuleModelgetOriginalModel()voidsetMigratedModel(int indexInRepository)voidsetMigratedModel(IModel migratedModel)voidsetOriginalModel(int indexInRepository)voidsetOriginalModel(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:
setOriginalModelin interfaceIFlockContext- Throws:
FlockUnsupportedModelException
-
setMigratedModel
public void setMigratedModel(IModel migratedModel) throws FlockUnsupportedModelException
- Specified by:
setMigratedModelin interfaceIFlockContext- Throws:
FlockUnsupportedModelException
-
setOriginalModel
public void setOriginalModel(int indexInRepository) throws FlockUnsupportedModelException- Specified by:
setOriginalModelin interfaceIFlockContext- Throws:
FlockUnsupportedModelException
-
setMigratedModel
public void setMigratedModel(int indexInRepository) throws FlockUnsupportedModelException- Specified by:
setMigratedModelin interfaceIFlockContext- Throws:
FlockUnsupportedModelException
-
execute
public FlockResult execute(MigrationStrategy strategy) throws FlockRuntimeException
- Specified by:
executein interfaceIFlockContext- Throws:
FlockRuntimeException
-
getEquivalenceEstablishmentContext
public EquivalenceEstablishmentContext getEquivalenceEstablishmentContext()
- Specified by:
getEquivalenceEstablishmentContextin interfaceIFlockContext
-
getMigrationStrategyCheckingContext
public MigrationStrategyCheckingContext getMigrationStrategyCheckingContext()
- Specified by:
getMigrationStrategyCheckingContextin interfaceIFlockContext
-
getConservativeCopyContext
public ConservativeCopyContext getConservativeCopyContext()
- Specified by:
getConservativeCopyContextin interfaceIFlockContext
-
getModule
public IFlockModule getModule()
Description copied from interface:IErlContextCasts the IModule to IErlModule- Specified by:
getModulein interfaceIEolContext- Specified by:
getModulein interfaceIErlContext- Overrides:
getModulein classErlContext- See Also:
IEolContext.getModule()
-
-