类 AnnotationAdder

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

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