Class TypeAnnotationAdder

  • All Implemented Interfaces:
    TypeAnnotationVisitor

    public class TypeAnnotationAdder
    extends java.lang.Object
    implements TypeAnnotationVisitor
    This TypeAnnotationVisitor adds all type annotations that it visits to the given target annotation element value, target annotation attribute, or target parameter annotation attribute.
    • Constructor Detail

      • TypeAnnotationAdder

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

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