Package org.objectweb.asm.tree
Class TypeAnnotationNode
java.lang.Object
org.objectweb.asm.AnnotationVisitor
org.objectweb.asm.tree.AnnotationNode
org.objectweb.asm.tree.TypeAnnotationNode
- Direct Known Subclasses:
LocalVariableAnnotationNode
A node that represents a type annotation.
-
Field Summary
Modifier and TypeFieldDescriptionThe path to the annotated type argument, wildcard bound, array element type, or static outer type within the referenced type.int
A reference to the annotated type.Fields inherited from class org.objectweb.asm.tree.AnnotationNode
desc, values
Fields inherited from class org.objectweb.asm.AnnotationVisitor
api, av
-
Constructor Summary
ConstructorDescriptionTypeAnnotationNode
(int api, int typeRef, TypePath typePath, String descriptor) Constructs a newAnnotationNode
.TypeAnnotationNode
(int typeRef, TypePath typePath, String descriptor) Constructs a newAnnotationNode
. -
Method Summary
Methods inherited from class org.objectweb.asm.tree.AnnotationNode
accept, check, visit, visitAnnotation, visitArray, visitEnd, visitEnum
Methods inherited from class org.objectweb.asm.AnnotationVisitor
getDelegate
-
Field Details
-
typeRef
public int typeRefA reference to the annotated type. SeeTypeReference
. -
typePath
The path to the annotated type argument, wildcard bound, array element type, or static outer type within the referenced type. May be null if the annotation targets 'typeRef' as a whole.
-
-
Constructor Details
-
TypeAnnotationNode
Constructs a newAnnotationNode
. Subclasses must not use this constructor. Instead, they must use theTypeAnnotationNode(int, int, TypePath, String)
version.- Parameters:
typeRef
- a reference to the annotated type. SeeTypeReference
.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.- Throws:
IllegalStateException
- If a subclass calls this constructor.
-
TypeAnnotationNode
Constructs a newAnnotationNode
.- Parameters:
api
- the ASM API version implemented by this visitor. Must be one of theASM
x values inOpcodes
.typeRef
- a reference to the annotated type. SeeTypeReference
.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.
-