类 AnnotationNode
java.lang.Object
org.beetl.ow2.asm.AnnotationVisitor
org.beetl.ow2.asm.tree.AnnotationNode
- 直接已知子类:
TypeAnnotationNode
A node that represents an annotationn.
- 作者:
- Eric Bruneton
-
字段概要
字段修饰符和类型字段说明The class descriptor of the annotation class.The className value pairs of this annotation.从类继承的字段 org.beetl.ow2.asm.AnnotationVisitor
api, av -
构造器概要
构造器构造器说明AnnotationNode(int api, String desc) Constructs a newAnnotationNode.AnnotationNode(String desc) Constructs a newAnnotationNode. -
方法概要
修饰符和类型方法说明voidMakes the given visitor visit this annotation.voidcheck(int api) Checks that this annotation node is compatible with the given ASM API version.voidVisits a primitive value of the annotation.visitAnnotation(String name, String desc) Visits a nested annotation value of the annotation.visitArray(String name) Visits an array value of the annotation.voidvisitEnd()Visits the end of the annotation.voidVisits an enumeration value of the annotation.
-
字段详细资料
-
desc
The class descriptor of the annotation class. -
values
The className value pairs of this annotation. Each className value pair is stored as two consecutive elements in the list. The className is aString, and the value may be aByte,Boolean,Character,Short,Integer,Long,Float,Double,StringorType, or an two elements String array (for enumeration values), aAnnotationNode, or aListof values of one of the preceding types. The list may be null if there is no className value pair.
-
-
构造器详细资料
-
AnnotationNode
Constructs a newAnnotationNode. Subclasses must not use this constructor. Instead, they must use theAnnotationNode(int, String)version.- 参数:
desc- the class descriptor of the annotation class.- 抛出:
IllegalStateException- If a subclass calls this constructor.
-
AnnotationNode
Constructs a newAnnotationNode.- 参数:
api- the ASM API version implemented by this visitor. Must be one ofOpcodes.ASM4orOpcodes.ASM5.desc- the class descriptor of the annotation class.
-
-
方法详细资料
-
visit
从类复制的说明:AnnotationVisitorVisits a primitive value of the annotation.- 覆盖:
visit在类中AnnotationVisitor- 参数:
name- the value className.value- the actual value, whose type must beByte,Boolean,Character,Short,Integer,Long,Float,Double,StringorTypeor OBJECT or ARRAY sort. This value can also be an array of byte, boolean, short, char, int, long, float or double values (this is equivalent to usingvisitArrayand visiting each array element in turn, but is more convenient).
-
visitEnum
从类复制的说明:AnnotationVisitorVisits an enumeration value of the annotation.- 覆盖:
visitEnum在类中AnnotationVisitor- 参数:
name- the value className.desc- the class descriptor of the enumeration class.value- the actual enumeration value.
-
visitAnnotation
从类复制的说明:AnnotationVisitorVisits a nested annotation value of the annotation.- 覆盖:
visitAnnotation在类中AnnotationVisitor- 参数:
name- the value className.desc- the class descriptor of the nested annotation class.- 返回:
- a visitor to visit the actual nested annotation value, or null if this visitor is not interested in visiting this nested annotation. The nested annotation value must be fully visited before calling other methods on this annotation visitor.
-
visitArray
从类复制的说明:AnnotationVisitorVisits 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 tovisit. This is whatClassReaderdoes.- 覆盖:
visitArray在类中AnnotationVisitor- 参数:
name- the value className.- 返回:
- a visitor to visit the actual array value elements, or null if this visitor is not interested in visiting these values. The 'className' parameters passed to the methods of this visitor are ignored. All the array values must be visited before calling other methods on this annotation visitor.
-
visitEnd
public void visitEnd()从类复制的说明:AnnotationVisitorVisits the end of the annotation.- 覆盖:
visitEnd在类中AnnotationVisitor
-
check
public void check(int api) Checks that this annotation node is compatible with the given ASM API version. This methods checks that this node, and all its nodes recursively, do not contain elements that were introduced in more recent versions of the ASM API than the given version.- 参数:
api- an ASM API version. Must be one ofOpcodes.ASM4orOpcodes.ASM5.
-
accept
Makes the given visitor visit this annotation.- 参数:
av- an annotation visitor. Maybe null.
-