de.cau.cs.kieler.core.model.xtend.m2m
Class XtendTransformationContext
java.lang.Object
de.cau.cs.kieler.core.model.xtend.m2m.XtendTransformationContext
- All Implemented Interfaces:
- ITransformationContext
- Direct Known Subclasses:
- KiesTransformationContext
public class XtendTransformationContext
- extends Object
- implements ITransformationContext
ITransformationContext
for the execution of Xtend transformations.
- Rating

- (2011-02-14) review by msp, haf
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XtendTransformationContext
public XtendTransformationContext(org.eclipse.xtend.XtendFacade facade)
- Parameters:
facade
- XtendFacade
responsible for calling the extensions.
XtendTransformationContext
public XtendTransformationContext(org.eclipse.xtend.XtendFacade facade,
TransactionalEditingDomain theEditingDomain)
- Parameters:
facade
- XtendFacade
responsible for calling the extensions.theEditingDomain
- editing domain on which the current transformation is executed.
XtendTransformationContext
public XtendTransformationContext(String extensionFile,
String[] basePackages,
Map<String,org.eclipse.xtend.expression.Variable> globalVars,
TransactionalEditingDomain editingDomain)
- Parameters:
extensionFile
- the file (*.ext) containing the used extensions.basePackages
- the base packages used by this transformationglobalVars
- A Map
with global variables used by xtend. May be null
.editingDomain
- editing domain on which the current transformation is executed. May be
null
.
execute
public void execute(TransformationDescriptor descriptor)
- Execute the actual transformation. This method will be called by the
TransformationEffect
.
- Specified by:
execute
in interface ITransformationContext
- Parameters:
descriptor
- The TransformationDescriptor
containing information about the explicit
transformation to execute.
setXtendFacade
public void setXtendFacade(org.eclipse.xtend.XtendFacade theXtendFacade)
- Parameters:
theXtendFacade
- the xtendFacade to set
setEditingDomain
public void setEditingDomain(TransactionalEditingDomain theEditingDomain)
- Parameters:
theEditingDomain
- the editingDomain to set