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(java.lang.String name,
boolean visible)
Creates an annotation descriptor.
|
AnnotationDescriptor(java.lang.String name,
java.lang.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(java.lang.String arg0,
java.lang.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(java.lang.String arg0,
java.lang.String arg1)
Visits a nested annotation.
|
org.objectweb.asm.AnnotationVisitor |
visitArray(java.lang.String arg0)
Visits an array attribute.
|
void |
visitEnd()
End of the visit.
|
void |
visitEnum(java.lang.String arg0,
java.lang.String arg1,
java.lang.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(java.lang.String name, boolean visible)
name
- the name of the annotationvisible
- the visibility of the annotation at runtimepublic AnnotationDescriptor(java.lang.String name, java.lang.String desc)
name
- the name of the annotationdesc
- the descriptor of the annotationpublic void visit(java.lang.String arg0, java.lang.Object arg1)
visit
in class org.objectweb.asm.AnnotationVisitor
arg0
- the attribute namearg1
- the attribute valueAnnotationVisitor.visit(java.lang.String, java.lang.Object)
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String arg0, java.lang.String arg1)
visitAnnotation
in class org.objectweb.asm.AnnotationVisitor
arg0
- the attribute namearg1
- the annotation descriptorAnnotationVisitor.visitAnnotation(java.lang.String, java.lang.String)
public org.objectweb.asm.AnnotationVisitor visitArray(java.lang.String arg0)
visitArray
in class org.objectweb.asm.AnnotationVisitor
arg0
- the name of the attributeClassChecker.ArrayAttribute
to parse this arrayAnnotationVisitor.visitArray(java.lang.String)
public void visitEnd()
visitEnd
in class org.objectweb.asm.AnnotationVisitor
AnnotationVisitor.visitEnd()
public void visitEnum(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)
visitEnum
in class 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-2014 The Apache Software Foundation. All Rights Reserved.