|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.debug.vm.launching.InternalDebuggableExecutor
public abstract class InternalDebuggableExecutor
Internal transformation executor
Field Summary | |
---|---|
protected org.eclipse.emf.common.util.URI |
debuggableURI
|
protected IVMEnvironmentFactory |
envFactory
|
Constructor Summary | |
---|---|
InternalDebuggableExecutor(IVMEnvironmentFactory envFactory,
org.eclipse.emf.common.util.URI debuggableURI)
Constructs the executor for the given transformation URI. |
Method Summary | |
---|---|
void |
cleanup()
|
protected abstract IVMEvaluator |
createEvaluator()
|
ExecutionDiagnostic |
execute(VMStartRequest startRequest,
EvaluationContext evaluationContext)
Executes the transformation referred by this executor using the given model parameters and execution context. |
NamedElement |
getDebuggable()
|
IVMEnvironmentFactory |
getEnvFactory()
|
IVMEvaluator |
getEvaluator()
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
|
CompiledUnit |
getUnit()
Retrieves compiled unit if the referencing URI gets successfully resolved |
org.eclipse.emf.common.util.URI |
getURI()
|
org.eclipse.emf.common.util.Diagnostic |
loadDebuggable()
Attempts to load the transformation referred by this executor and checks if it is valid for execution. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@NonNull protected final IVMEnvironmentFactory envFactory
@NonNull protected final org.eclipse.emf.common.util.URI debuggableURI
Constructor Detail |
---|
public InternalDebuggableExecutor(@NonNull IVMEnvironmentFactory envFactory, @NonNull org.eclipse.emf.common.util.URI debuggableURI)
No attempt to resolve and load the transformation is done at this step
uri
- the URI of an existing transformationMethod Detail |
---|
public void cleanup()
@NonNull protected abstract IVMEvaluator createEvaluator() throws java.io.IOException
java.io.IOException
public ExecutionDiagnostic execute(@NonNull VMStartRequest startRequest, @NonNull EvaluationContext evaluationContext)
executionContext
- the context object keeping the execution environment detailsmodelParameters
- the actual model arguments to the transformation
java.lang.IllegalArgumentException
- if the context or any of the model parameters is
null
@Nullable public NamedElement getDebuggable()
@NonNull public IVMEnvironmentFactory getEnvFactory()
public IVMEvaluator getEvaluator()
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
@NonNull public org.eclipse.emf.common.util.URI getURI()
@Nullable public CompiledUnit getUnit()
Remark: This method invocation causes the referenced transformation to load if not already done before by direct call to #loadTransformation() or
null
if it failed to be obtainedpublic org.eclipse.emf.common.util.Diagnostic loadDebuggable()
Remark: Only the first performs the actual transformation loading, subsequent calls to this method will return the existing diagnostic.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |