public class AnnotationAdder extends java.lang.Object implements AnnotationVisitor
AnnotationVisitor adds all annotations that it visits to the given
target annotation element value, target annotation attribute, or target
parameter annotation attribute.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visitAnnotation(Clazz clazz,
Annotation annotation)
Visits any Annotation instance.
|
void |
visitAnnotation(Clazz clazz,
Method method,
int parameterIndex,
Annotation annotation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitAnnotation, visitAnnotation, visitAnnotation, visitAnnotationpublic AnnotationAdder(ProgramClass targetClass, AnnotationElementValue targetAnnotationElementValue)
public AnnotationAdder(ProgramClass targetClass, AnnotationsAttribute targetAnnotationsAttribute)
public AnnotationAdder(ProgramClass targetClass, ParameterAnnotationsAttribute targetParameterAnnotationsAttribute)
public void visitAnnotation(Clazz clazz, Annotation annotation)
AnnotationVisitorvisitAnnotation in interface AnnotationVisitorpublic void visitAnnotation(Clazz clazz, Method method, int parameterIndex, Annotation annotation)
visitAnnotation in interface AnnotationVisitor