Class AnnotationAdder

  • All Implemented Interfaces:
    AnnotationVisitor

    public class AnnotationAdder
    extends java.lang.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 Detail

      • 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.