public class XcodeMLWorkaround extends ClawTransformation
_claw| Constructor and Description |
|---|
XcodeMLWorkaround()
Default ctor as this is a translation_unit triggered transformation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
analyze(XcodeProgram xcodeml,
Translator translator)
Analyze the possibility to apply the transformation.
|
boolean |
canBeTransformedWith(XcodeProgram xcodeml,
Transformation other)
Check whether the current transformation can be transformed together with
the given transformation.
|
void |
transform(XcodeProgram xcodeml,
Translator translator,
Transformation other)
Apply the actual transformation.
|
getLanguageInfo, removePragmaabortOnFailedAnalysis, getDirective, getStartLine, isTransformed, setStartLine, transformedpublic XcodeMLWorkaround()
public boolean analyze(XcodeProgram xcodeml, Translator translator)
Transformationanalyze in class Transformationxcodeml - The XcodeML on which the transformations are applied.translator - The translator used to applied the transformations.public boolean canBeTransformedWith(XcodeProgram xcodeml, Transformation other)
TransformationcanBeTransformedWith in class Transformationxcodeml - The XcodeML on which the transformations are applied.other - The other transformation part of the dependent transformation.Transformation.canBeTransformedWith(XcodeProgram, Transformation)public void transform(XcodeProgram xcodeml, Translator translator, Transformation other) throws java.lang.Exception
Transformationtransform in class Transformationxcodeml - The XcodeML on which the transformations are applied.translator - The translator used to applied the transformations.other - Only for dependent transformation. The other
transformation part of the transformation.IllegalTransformationException - if the transformation cannot be
applied.java.lang.Exception