public class DirectivePrimitive extends ClawTransformation
_claw
Constructor and Description |
---|
DirectivePrimitive(ClawPragma directive)
Constructs a new DirectivePrimitive triggered from a specific pragma.
|
Modifier and Type | Method and Description |
---|---|
boolean |
analyze(XcodeProgram xcodeml,
Translator translator)
Analysis of 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 transformation)
Apply the directive primitive transformation.
|
getLanguageInfo, removePragma
abortOnFailedAnalysis, getDirective, getStartLine, isTransformed, setStartLine, transformed
public DirectivePrimitive(ClawPragma directive)
directive
- The directive that triggered the directive primitive
transformation.public boolean analyze(XcodeProgram xcodeml, Translator translator)
analyze
in class Transformation
xcodeml
- The XcodeML on which the transformations are applied.translator
- The translator used to applied the transformations.public boolean canBeTransformedWith(XcodeProgram xcodeml, Transformation other)
Transformation
canBeTransformedWith
in class Transformation
xcodeml
- 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 transformation) throws IllegalTransformationException
transform
in class Transformation
xcodeml
- The XcodeML on which the transformations are
applied.translator
- The translator used to applied the transformations.transformation
- Not used in this transformationIllegalTransformationException
- if the transformation cannot be
applied.