Class LocalTransformation

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

    public class LocalTransformation
    extends AbstractASTTransformation
    Reduces the boiler plate code when declaring an annotation as possible target for a given transformation. It adds code such as the Retention and Target annotations as well as the GroovyASTTransformationClass. This code:
     
       import my.transformation.MyTransformation
    
       @Local(MyTransformation)
       public @interface MyAnnotation { }
     
     
    Will become:
     
        @Retention(RetentionPolicy.SOURCE)
        @Target([ElementType.METHOD])
        @GroovyASTTransformation("my.transformation.MyTransformation")
        public @interface MyAnnotation { }
     
     
    Since:
    0.1.0
    • Constructor Detail

      • LocalTransformation

        public LocalTransformation()
    • Method Detail