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.
- Author:
- Eric Bruneton
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.objectweb.asm.TypePath
The 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
ConstructorsConstructorDescriptionTypeAnnotationNode
(int api, int typeRef, org.objectweb.asm.TypePath typePath, String descriptor) Constructs a newAnnotationNode
.TypeAnnotationNode
(int typeRef, org.objectweb.asm.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
public org.objectweb.asm.TypePath typePathThe 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
public TypeAnnotationNode(int api, int typeRef, org.objectweb.asm.TypePath typePath, String descriptor) 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.
-