public class ClassChecker.AnnotationDescriptor
extends org.objectweb.asm.AnnotationVisitor
AnnotationVisitor in order to create the copy.
This class contains a visit method re-injecting the
annotation in the generated method.| Constructor and Description |
|---|
AnnotationDescriptor(String name,
boolean visible)
Creates an annotation descriptor.
|
AnnotationDescriptor(String name,
String desc)
Creates an annotation descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visit(org.objectweb.asm.AnnotationVisitor mv)
Method allowing to recreate the visited (stored) annotation
into the destination annotation.
|
void |
visit(String arg0,
Object arg1)
Visits a simple attribute.
|
void |
visitAnnotation(org.objectweb.asm.MethodVisitor mv)
Methods allowing to recreate the visited (stored) annotation
into the destination method.
|
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String arg0,
String arg1)
Visits a nested annotation.
|
org.objectweb.asm.AnnotationVisitor |
visitArray(String arg0)
Visits an array attribute.
|
void |
visitEnd()
End of the visit.
|
void |
visitEnum(String arg0,
String arg1,
String arg2)
Visits an enumeration attribute.
|
void |
visitParameterAnnotation(int id,
org.objectweb.asm.MethodVisitor mv)
Methods allowing to recreate the visited (stored) parameter annotations
into the destination method.
|
public AnnotationDescriptor(String name, boolean visible)
name - the name of the annotationvisible - the visibility of the annotation at runtimepublic void visit(String arg0, Object arg1)
visit in class org.objectweb.asm.AnnotationVisitorarg0 - the attribute namearg1 - the attribute valueAnnotationVisitor.visit(java.lang.String, java.lang.Object)public org.objectweb.asm.AnnotationVisitor visitAnnotation(String arg0, String arg1)
visitAnnotation in class org.objectweb.asm.AnnotationVisitorarg0 - the attribute namearg1 - the annotation descriptorAnnotationVisitor.visitAnnotation(java.lang.String, java.lang.String)public org.objectweb.asm.AnnotationVisitor visitArray(String arg0)
visitArray in class org.objectweb.asm.AnnotationVisitorarg0 - the name of the attributeClassChecker.ArrayAttribute to parse this arrayAnnotationVisitor.visitArray(java.lang.String)public void visitEnd()
visitEnd in class org.objectweb.asm.AnnotationVisitorAnnotationVisitor.visitEnd()public void visitEnum(String arg0, String arg1, String arg2)
visitEnum in class org.objectweb.asm.AnnotationVisitorarg0 - the attribute namearg1 - the enumeration descriptorarg2 - the attribute valueAnnotationVisitor.visitEnum(java.lang.String, java.lang.String, java.lang.String)public void visitAnnotation(org.objectweb.asm.MethodVisitor mv)
mv - the method visitor visiting the destination method.public void visitParameterAnnotation(int id,
org.objectweb.asm.MethodVisitor mv)
id - the paramter idmv - the method visitor visiting the destination method.public void visit(org.objectweb.asm.AnnotationVisitor mv)
mv - the annotation visitor to populate with the stored
annotationCopyright © 2006–2023 The Apache Software Foundation. All rights reserved.