Package proguard.classfile.editor
Class TypeAnnotationAdder
- java.lang.Object
-
- proguard.classfile.editor.TypeAnnotationAdder
-
- All Implemented Interfaces:
TypeAnnotationVisitor
public class TypeAnnotationAdder extends java.lang.Object implements TypeAnnotationVisitor
ThisTypeAnnotationVisitor
adds all type annotations that it visits to the given target annotation element value, target annotation attribute, or target parameter annotation attribute.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitTypeAnnotation(Clazz clazz, TypeAnnotation typeAnnotation)
Visits any TypeAnnotation instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.attribute.annotation.visitor.TypeAnnotationVisitor
visitTypeAnnotation, visitTypeAnnotation, visitTypeAnnotation, visitTypeAnnotation, visitTypeAnnotation
-
-
-
-
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.
-
-
Method Detail
-
visitTypeAnnotation
public void visitTypeAnnotation(Clazz clazz, TypeAnnotation typeAnnotation)
Description copied from interface:TypeAnnotationVisitor
Visits any TypeAnnotation instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitTypeAnnotation
in interfaceTypeAnnotationVisitor
-
-