| com.tc.asm.AnnotationVisitor
All known Subclasses: com.tc.asm.commons.EmptyVisitor, com.tc.asm.util.CheckAnnotationAdapter, com.tc.object.bytecode.MulticastAnnotationVisitor, com.tc.asm.util.TraceAnnotationVisitor, com.tc.asm.util.ASMifierAnnotationVisitor, com.tc.asm.AnnotationWriter, com.tc.asm.tree.AnnotationNode,
AnnotationVisitor | public interface AnnotationVisitor (Code) | | A visitor to visit a Java annotation. The methods of this interface must be
called in the following order: (visit | visitEnum |
visitAnnotation | visitArray)* visitEnd.
author: Eric Bruneton author: Eugene Kuleshov |
Method Summary | |
void | visit(String name, Object value) Visits a primitive value of the annotation.
Parameters: name - the value name. Parameters: value - the actual value, whose type must be Byte,Boolean, Character, Short,Integer, Long, Float, Double,String or Type. | AnnotationVisitor | visitAnnotation(String name, String desc) Visits a nested annotation value of the annotation.
Parameters: name - the value name. Parameters: desc - the class descriptor of the nested annotation class. | AnnotationVisitor | visitArray(String name) Visits an array value of the annotation. | void | visitEnd() Visits the end of the annotation. | void | visitEnum(String name, String desc, String value) Visits an enumeration value of the annotation. |
visit | void visit(String name, Object value)(Code) | | Visits a primitive value of the annotation.
Parameters: name - the value name. Parameters: value - the actual value, whose type must be Byte,Boolean, Character, Short,Integer, Long, Float, Double,String or Type. This value can also be an arrayof byte, boolean, short, char, int, long, float or double values(this is equivalent to using AnnotationVisitor.visitArray visitArray andvisiting each array element in turn, but is more convenient). |
visitAnnotation | AnnotationVisitor visitAnnotation(String name, String desc)(Code) | | Visits a nested annotation value of the annotation.
Parameters: name - the value name. Parameters: desc - the class descriptor of the nested annotation class. a visitor to visit the actual nested annotation value, ornull if this visitor is not interested in visitingthis nested annotation. The nested annotation value must befully visited before calling other methods on this annotationvisitor. |
visitArray | AnnotationVisitor visitArray(String name)(Code) | | Visits an array value of the annotation. Note that arrays of primitive
types (such as byte, boolean, short, char, int, long, float or double)
can be passed as value to
AnnotationVisitor.visit visit . This is what
ClassReader does.
Parameters: name - the value name. a visitor to visit the actual array value elements, ornull if this visitor is not interested in visitingthese values. The 'name' parameters passed to the methods of thisvisitor are ignored. All the array values must be visitedbefore calling other methods on this annotation visitor. |
visitEnd | void visitEnd()(Code) | | Visits the end of the annotation.
|
visitEnum | void visitEnum(String name, String desc, String value)(Code) | | Visits an enumeration value of the annotation.
Parameters: name - the value name. Parameters: desc - the class descriptor of the enumeration class. Parameters: value - the actual enumeration value. |
|
|