org.eclipse.ocl.examples.debug.evaluator
Class OCLVMEvaluator
java.lang.Object
org.eclipse.ocl.examples.debug.evaluator.OCLVMEvaluator
- All Implemented Interfaces:
- IVMEvaluator
public class OCLVMEvaluator
- extends java.lang.Object
- implements IVMEvaluator
A OCLVMEvaluator supports loading a transformation as source then loading models, performing a transformation
and then saving the models.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metaModelManager
@NonNull
protected final MetaModelManager metaModelManager
expressionInOCL
@NonNull
protected final ExpressionInOCL expressionInOCL
envFactory
@NonNull
protected final OCLVMEnvironmentFactory envFactory
env
@NonNull
protected final OCLVMEnvironment env
modelManager
@NonNull
protected final IVMModelManager modelManager
OCLVMEvaluator
public OCLVMEvaluator(@NonNull
OCLVMEnvironmentFactory envFactory,
@NonNull
org.eclipse.emf.common.util.URI oclURI,
@Nullable
org.eclipse.emf.common.util.URI contextURI)
throws java.io.IOException
- Throws:
java.io.IOException
OCLVMEvaluator
public OCLVMEvaluator(@NonNull
OCLVMEnvironmentFactory envFactory,
@NonNull
Constraint constraint,
@NonNull
org.eclipse.emf.ecore.EObject context)
throws java.io.IOException
- Throws:
java.io.IOException
OCLVMEvaluator
public OCLVMEvaluator(@NonNull
OCLVMEnvironmentFactory envFactory,
@NonNull
ExpressionInOCL expressionInOCL,
@Nullable
org.eclipse.emf.ecore.EObject context)
throws java.io.IOException
- Throws:
java.io.IOException
loadContext
@NonNull
public static org.eclipse.emf.ecore.EObject loadContext(@NonNull
MetaModelManager metaModelManager,
@NonNull
org.eclipse.emf.common.util.URI contextURI)
throws java.io.IOException
- Throws:
java.io.IOException
loadExpression
@NonNull
public static ExpressionInOCL loadExpression(@NonNull
MetaModelManager metaModelManager,
@NonNull
org.eclipse.emf.common.util.URI constraintURI,
boolean keepDebug)
throws java.io.IOException
- Throws:
java.io.IOException
loadExpression
@NonNull
public static ExpressionInOCL loadExpression(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.common.util.URI constraintURI)
throws java.io.IOException
- Throws:
java.io.IOException
dispose
public void dispose()
execute
public java.lang.Object execute()
- Specified by:
execute
in interface IVMEvaluator
getDebuggable
@NonNull
public ExpressionInOCL getDebuggable()
- Specified by:
getDebuggable
in interface IVMEvaluator
getEnvironment
@NonNull
public final OCLVMEnvironment getEnvironment()
getEnvironmentFactory
@NonNull
public final OCLVMEnvironmentFactory getEnvironmentFactory()
getMetaModelManager
@NonNull
public final MetaModelManager getMetaModelManager()
- Specified by:
getMetaModelManager
in interface IVMEvaluator
getModelManager
@NonNull
public final IVMModelManager getModelManager()
getExpressionInOCL
@NonNull
public ExpressionInOCL getExpressionInOCL()
saveModels
public void saveModels()
- Specified by:
saveModels
in interface IVMEvaluator
setSuspendOnStartUp
public void setSuspendOnStartUp(boolean suspendOnStartup)
- Specified by:
setSuspendOnStartUp
in interface IVMEvaluator