public class TypeAnnotationAdder extends java.lang.Object implements TypeAnnotationVisitor
TypeAnnotationVisitor
adds all type annotations that it visits to the given
target annotation element value, target annotation attribute, or target
parameter annotation attribute.Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
visitTypeAnnotation(Clazz clazz,
TypeAnnotation typeAnnotation)
Visits any TypeAnnotation instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitTypeAnnotation, visitTypeAnnotation, visitTypeAnnotation, visitTypeAnnotation, visitTypeAnnotation
public TypeAnnotationAdder(ProgramClass targetClass, AnnotationElementValue targetAnnotationElementValue)
public TypeAnnotationAdder(ProgramClass targetClass, AnnotationsAttribute targetAnnotationsAttribute)
public void visitTypeAnnotation(Clazz clazz, TypeAnnotation typeAnnotation)
TypeAnnotationVisitor
visitTypeAnnotation
in interface TypeAnnotationVisitor