类 TypeAnnotationAdder

  • 所有已实现的接口:
    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.
    • 构造器详细资料

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