public abstract class InternalDebuggableExecutor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.common.util.URI |
debuggableURI |
protected IVMContext |
vmContext |
Modifier | Constructor and Description |
---|---|
protected |
InternalDebuggableExecutor(IVMContext vmContext,
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 VMExecutor |
createVMExecutor() |
ExecutionDiagnostic |
execute(VMStartRequest startRequest,
EvaluationContext evaluationContext)
Executes the transformation referred by this executor using the given
model parameters and execution context.
|
NamedElement |
getDebuggable() |
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() |
IVMContext |
getVMContext() |
VMExecutor |
getVMExecutor() |
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 IVMContext vmContext
@NonNull protected final org.eclipse.emf.common.util.URI debuggableURI
protected InternalDebuggableExecutor(@NonNull IVMContext vmContext, @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 VMExecutor createVMExecutor() 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 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 IVMContext getVMContext()
public VMExecutor getVMExecutor()
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