public class TypeAnnotationNode extends AnnotationNode
Modifier and Type | Field and 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.
|
desc, values
api, av
Constructor and Description |
---|
TypeAnnotationNode(int api,
int typeRef,
TypePath typePath,
String desc)
Constructs a new
AnnotationNode . |
TypeAnnotationNode(int typeRef,
TypePath typePath,
String desc)
Constructs a new
AnnotationNode . |
public int typeRef
TypeReference
.public TypePath typePath
public TypeAnnotationNode(int typeRef, TypePath typePath, 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.IllegalStateException
- If a subclass calls this constructor.public TypeAnnotationNode(int api, int typeRef, TypePath typePath, 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.