Class AnnotationAdder

java.lang.Object
proguard.classfile.editor.AnnotationAdder
All Implemented Interfaces:
AnnotationVisitor

public class AnnotationAdder extends Object implements AnnotationVisitor
This AnnotationVisitor adds all annotations that it visits to the given target annotation element value, target annotation attribute, or target parameter annotation attribute.
  • Constructor Details

    • AnnotationAdder

      public AnnotationAdder(ProgramClass targetClass, AnnotationElementValue targetAnnotationElementValue)
      Creates a new AnnotationAdder that will copy annotations into the given target annotation element value.
    • AnnotationAdder

      public AnnotationAdder(ProgramClass targetClass, AnnotationsAttribute targetAnnotationsAttribute)
      Creates a new AnnotationAdder that will copy annotations into the given target annotations attribute.
    • AnnotationAdder

      public AnnotationAdder(ProgramClass targetClass, ParameterAnnotationsAttribute targetParameterAnnotationsAttribute)
      Creates a new AnnotationAdder that will copy annotations into the given target parameter annotations attribute.
  • Method Details