public class TypeAnnotationNode extends AnnotationNode
| Modifier and Type | Field and Description |
|---|---|
org.objectweb.asm.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, values| Constructor and Description |
|---|
TypeAnnotationNode(int api,
int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor)
Constructs a new
AnnotationNode. |
TypeAnnotationNode(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor)
Constructs a new
AnnotationNode. |
accept, check, visit, visitAnnotation, visitArray, visitEnd, visitEnumpublic int typeRef
TypeReference.public org.objectweb.asm.TypePath typePath
public TypeAnnotationNode(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor)
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.descriptor - the class descriptor of the annotation class.java.lang.IllegalStateException - If a subclass calls this constructor.public TypeAnnotationNode(int api,
int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor)
AnnotationNode.api - the ASM API version implemented by this visitor. Must be one of Opcodes.ASM4, Opcodes.ASM5, Opcodes.ASM6, Opcodes.ASM7, Opcodes.ASM8 or Opcodes.ASM9.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.descriptor - the class descriptor of the annotation class.