public class InternalTransformationExecutor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InternalTransformationExecutor.TracesAwareExecutor |
Constructor and Description |
---|
InternalTransformationExecutor(Transformation transformation) |
InternalTransformationExecutor(Transformation transformation,
EPackage.Registry registry) |
InternalTransformationExecutor(URI uri)
Constructs the executor for the given transformation URI.
|
InternalTransformationExecutor(URI uri,
EPackage.Registry registry) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
ExecutionDiagnostic |
execute(ExecutionContext executionContext,
ModelExtent... modelParameters)
Executes the transformation referred by this executor using the given
model parameters and execution context.
|
ResourceSet |
getResourceSet() |
OperationalTransformation |
getTransformation() |
CompiledUnit |
getUnit()
Retrieves compiled unit if the referencing URI gets successfully resolved
|
URI |
getURI() |
Diagnostic |
loadTransformation(IProgressMonitor monitor)
Attempts to load the transformation referred by this executor and checks
if it is valid for execution.
|
void |
setEnvironmentFactory(QvtOperationalEnvFactory factory) |
String |
toString() |
public InternalTransformationExecutor(URI uri)
No attempt to resolve and load the transformation is done at this step
uri
- the URI of an existing transformationpublic InternalTransformationExecutor(URI uri, EPackage.Registry registry)
public InternalTransformationExecutor(Transformation transformation)
public InternalTransformationExecutor(Transformation transformation, EPackage.Registry registry)
public URI getURI()
public ResourceSet getResourceSet()
public Diagnostic loadTransformation(IProgressMonitor monitor)
Remark: Only the first performs the actual transformation loading, subsequent calls to this method will return the existing diagnostic.
public CompiledUnit getUnit()
Remark: This method invocation causes the referenced transformation to load if not already done before by direct call to #loadTransformation() or execute(ExecutionContext, ModelExtent...)
null
if it failed to be obtainedpublic ExecutionDiagnostic execute(ExecutionContext executionContext, ModelExtent... modelParameters)
executionContext
- the context object keeping the execution environment detailsmodelParameters
- the actual model arguments to the transformationIllegalArgumentException
- if the context or any of the model parameters is
null
public OperationalTransformation getTransformation()
public void setEnvironmentFactory(QvtOperationalEnvFactory factory)
public void cleanup()
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.