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