|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.manipulation.ClassChecker.AnnotationDescriptor
public class ClassChecker.AnnotationDescriptor
Describes a method or constructor annotation.
This allows creating a copy of the annotations found in the original class
to move them on inserted method. This class implements an
AnnotationVisitor in order to create the copy.
This class contains a visit method re-injecting the
annotation in the generated method.
| Constructor Summary | |
|---|---|
ClassChecker.AnnotationDescriptor(String name,
boolean visible)
Creates an annotation descriptor. |
|
ClassChecker.AnnotationDescriptor(String name,
String desc)
Creates an annotation descriptor. |
|
| Method Summary | |
|---|---|
void |
visit(org.objectweb.asm.AnnotationVisitor mv)
Method allowing to recreate the visited (stored) annotation into the destination annotation. |
void |
visit(org.objectweb.asm.MethodVisitor mv)
Methods allowing to recreate the visited (stored) annotation into the destination method. |
void |
visit(String arg0,
Object arg1)
Visits a simple attribute. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassChecker.AnnotationDescriptor(String name,
boolean visible)
name - the name of the annotationvisible - the visibility of the annotation at runtime
public ClassChecker.AnnotationDescriptor(String name,
String desc)
name - the name of the annotationdesc - the descriptor of the annotation| Method Detail |
|---|
public void visit(String arg0,
Object arg1)
visit in interface 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 interface org.objectweb.asm.AnnotationVisitorarg0 - the attribute namearg1 - the annotation descriptor
AnnotationVisitor.visitAnnotation(java.lang.String, java.lang.String)public org.objectweb.asm.AnnotationVisitor visitArray(String arg0)
visitArray in interface org.objectweb.asm.AnnotationVisitorarg0 - the name of the attribute
ClassChecker.ArrayAttribute to parse this arrayAnnotationVisitor.visitArray(java.lang.String)public void visitEnd()
visitEnd in interface org.objectweb.asm.AnnotationVisitorAnnotationVisitor.visitEnd()
public void visitEnum(String arg0,
String arg1,
String arg2)
visitEnum in interface 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 visit(org.objectweb.asm.MethodVisitor mv)
mv - the method visitor visiting the destination method.public void visit(org.objectweb.asm.AnnotationVisitor mv)
mv - the annotation visitor to populate with the stored
annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||