public class ClassChecker.AnnotationDescriptor extends Object implements 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 |
---|
ClassChecker.AnnotationDescriptor(String name,
boolean visible)
Creates an annotation descriptor.
|
ClassChecker.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 ClassChecker.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 interface org.objectweb.asm.AnnotationVisitor
arg0
- 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 interface org.objectweb.asm.AnnotationVisitor
arg0
- the attribute namearg1
- the annotation descriptorAnnotationVisitor.visitAnnotation(java.lang.String, java.lang.String)
public org.objectweb.asm.AnnotationVisitor visitArray(String arg0)
visitArray
in interface org.objectweb.asm.AnnotationVisitor
arg0
- the name of the attributeClassChecker.ArrayAttribute
to parse this arrayAnnotationVisitor.visitArray(java.lang.String)
public void visitEnd()
visitEnd
in interface org.objectweb.asm.AnnotationVisitor
AnnotationVisitor.visitEnd()
public void visitEnum(String arg0, String arg1, String arg2)
visitEnum
in interface org.objectweb.asm.AnnotationVisitor
arg0
- 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-2013 The Apache Software Foundation. All Rights Reserved.