public abstract class TransformationGroup
extends java.lang.Object
Constructor and Description |
---|
TransformationGroup(java.lang.String name)
TransformationGroup ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Transformation translation)
Add a new transformation in the group.
|
abstract void |
applyTranslations(XcodeProgram xcodeml,
Translator translator)
Apply all transformation stored in this group.
|
int |
count()
Get the number of transformation stored in the group.
|
int |
getAppliedTransformationCount()
Return the number of transformation actually applied in the group.
|
java.util.List<Transformation> |
getTransformations()
Return the list of all transformations in this group.
|
void |
incrementAppliedTransformation()
Increment the applied transformation counter.
|
void |
setTransformations(java.util.List<Transformation> transformations)
Set the list of transformations.
|
java.lang.String |
transformationName()
Get the name of transformation stored in this group.
|
public TransformationGroup(java.lang.String name)
name
- A friendly name to describe the transformation group.public int count()
public void add(Transformation translation)
translation
- The transformation to be added.public java.util.List<Transformation> getTransformations()
public void setTransformations(java.util.List<Transformation> transformations)
transformations
- New list of transformations.public java.lang.String transformationName()
public int getAppliedTransformationCount()
public void incrementAppliedTransformation()
public abstract void applyTranslations(XcodeProgram xcodeml, Translator translator) throws java.lang.Exception
xcodeml
- The XcodeML on which the transformations are applied.translator
- The translator used to applied the transformations.IllegalTransformationException
- if transformation cannot be applied.java.lang.Exception
Transformation.transform(XcodeProgram, Translator, Transformation)