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
public class TypeAnnotationNode extends AnnotationNode
A node that represents a type annotation.
-
-
Field Summary
Fields Modifier and Type Field Description 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.-
Fields inherited from class org.objectweb.asm.tree.AnnotationNode
desc, values
-
Fields inherited from class org.objectweb.asm.AnnotationVisitor
api, av
-
-
Constructor Summary
Constructors Constructor Description TypeAnnotationNode(int api, int typeRef, TypePath typePath, String descriptor)
Constructs a newAnnotationNode
.TypeAnnotationNode(int typeRef, TypePath typePath, String descriptor)
Constructs a newAnnotationNode
.
-
-
-
Field Detail
-
typeRef
public int typeRef
A reference to the annotated type. SeeTypeReference
.
-
typePath
public TypePath 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 Detail
-
TypeAnnotationNode
public TypeAnnotationNode(int typeRef, TypePath typePath, String descriptor)
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, TypePath typePath, String descriptor)
Constructs a newAnnotationNode
.- Parameters:
api
- the ASM API version implemented by this visitor. Must be one ofOpcodes.ASM4
,Opcodes.ASM5
,Opcodes.ASM6
orOpcodes.ASM7
.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.
-
-