Class PhaseTransformation

  • All Implemented Interfaces:
    groovyjarjarasm.asm.Opcodes, ASTTransformation, ErrorCollecting

    public class PhaseTransformation
    extends AbstractLocalTransformation<Phase,​ClassNode>
    This transformation makes easier to declare a given local transformation. It narrows the available compilation phases to those only capable of being used in a local transformation. The way of declaring the transformation makes clearer the fact that it is a local transformation.
    Since:
    0.2.0
    • Method Detail

      • doVisit

        public void doVisit​(AnnotationNode annotationNode,
                            ClassNode annotatedNode)
        This method processes all annotated nodes annotated with a specific annotation node.
        Specified by:
        doVisit in class AbstractLocalTransformation<Phase,​ClassNode>
        Parameters:
        annotationNode - the annotation information
        annotatedNode - the ast node annotated with the specific annotation
        Since:
        0.2.0