public class TypeAnnotationNode extends AnnotationNode
| 限定符和类型 | 字段和说明 |
|---|---|
TypePath |
typePath
The path to the annotated type argument, wildcard bound, array element
type, or static outer type within the referenced type.
|
int |
typeRef
A reference to the annotated type.
|
desc, valuesapi, av| 构造器和说明 |
|---|
TypeAnnotationNode(int api,
int typeRef,
TypePath typePath,
java.lang.String desc)
Constructs a new
AnnotationNode. |
TypeAnnotationNode(int typeRef,
TypePath typePath,
java.lang.String desc)
Constructs a new
AnnotationNode. |
accept, check, visit, visitAnnotation, visitArray, visitEnd, visitEnumpublic int typeRef
TypeReference.public TypePath typePath
public TypeAnnotationNode(int typeRef,
TypePath typePath,
java.lang.String desc)
AnnotationNode. Subclasses must not use this
constructor. Instead, they must use the
TypeAnnotationNode(int, int, TypePath, String) version.typeRef - a reference to the annotated type. See TypeReference.typePath - the path to the annotated type argument, wildcard bound, array
element type, or static inner type within 'typeRef'. May be
null if the annotation targets 'typeRef' as a whole.desc - the class descriptor of the annotation class.java.lang.IllegalStateException - If a subclass calls this constructor.public TypeAnnotationNode(int api,
int typeRef,
TypePath typePath,
java.lang.String desc)
AnnotationNode.api - the ASM API version implemented by this visitor. Must be one
of Opcodes.ASM4 or Opcodes.ASM5.typeRef - a reference to the annotated type. See TypeReference.typePath - the path to the annotated type argument, wildcard bound, array
element type, or static inner type within 'typeRef'. May be
null if the annotation targets 'typeRef' as a whole.desc - the class descriptor of the annotation class.