public abstract class InternalDebuggableExecutor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.common.util.URI |
debuggableURI |
protected IVMEnvironmentFactory |
vmEnvironmentFactory |
Modifier | Constructor and Description |
---|---|
protected |
InternalDebuggableExecutor(IVMEnvironmentFactory vmEnvironmentFactory,
org.eclipse.emf.common.util.URI debuggableURI)
Constructs the executor for the given transformation URI.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
protected abstract IVMEvaluator |
createVMEvaluator() |
ExecutionDiagnostic |
execute(VMStartRequest startRequest,
EvaluationContext evaluationContext)
Executes the transformation referred by this executor using the given
model parameters and execution context.
|
NamedElement |
getDebuggable() |
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() |
IVMEnvironmentFactory |
getVMEnvironmentFactory() |
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() |
@NonNull protected final IVMEnvironmentFactory vmEnvironmentFactory
@NonNull protected final org.eclipse.emf.common.util.URI debuggableURI
protected InternalDebuggableExecutor(@NonNull IVMEnvironmentFactory vmEnvironmentFactory, @NonNull org.eclipse.emf.common.util.URI debuggableURI)
No attempt to resolve and load the transformation is done at this step
public void cleanup()
@NonNull protected abstract IVMEvaluator createVMEvaluator() throws java.io.IOException, ParserException
java.io.IOException
ParserException
public ExecutionDiagnostic execute(@NonNull VMStartRequest startRequest, @NonNull EvaluationContext evaluationContext)
java.lang.IllegalArgumentException
- if the context or any of the model parameters is
null
@Nullable public NamedElement getDebuggable()
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 loadDebuggable() or
null
if it failed to be obtained@NonNull public IVMEnvironmentFactory getVMEnvironmentFactory()
public 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