类 AnnotationAdder
- java.lang.Object
-
- proguard.classfile.editor.AnnotationAdder
-
- 所有已实现的接口:
AnnotationVisitor
public class AnnotationAdder extends java.lang.Object implements AnnotationVisitor
ThisAnnotationVisitoradds all annotations that it visits to the given target annotation element value, target annotation attribute, or target parameter annotation attribute.
-
-
构造器概要
构造器 构造器 说明 AnnotationAdder(ProgramClass targetClass, AnnotationElementValue targetAnnotationElementValue)Creates a new AnnotationAdder that will copy annotations into the given target annotation element value.AnnotationAdder(ProgramClass targetClass, AnnotationsAttribute targetAnnotationsAttribute)Creates a new AnnotationAdder that will copy annotations into the given target annotations attribute.AnnotationAdder(ProgramClass targetClass, ParameterAnnotationsAttribute targetParameterAnnotationsAttribute)Creates a new AnnotationAdder that will copy annotations into the given target parameter annotations attribute.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidvisitAnnotation(Clazz clazz, Annotation annotation)Visits any Annotation instance.voidvisitAnnotation(Clazz clazz, Method method, int parameterIndex, Annotation annotation)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 proguard.classfile.attribute.annotation.visitor.AnnotationVisitor
visitAnnotation, visitAnnotation, visitAnnotation, visitAnnotation
-
-
-
-
构造器详细资料
-
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.
-
-
方法详细资料
-
visitAnnotation
public void visitAnnotation(Clazz clazz, Annotation annotation)
从接口复制的说明:AnnotationVisitorVisits any Annotation instance. The more specific default implementations of this interface delegate to this method.- 指定者:
visitAnnotation在接口中AnnotationVisitor
-
visitAnnotation
public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, Annotation annotation)
- 指定者:
visitAnnotation在接口中AnnotationVisitor
-
-