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 descriptor)
Constructs a new
AnnotationNode . |
TypeAnnotationNode(int typeRef,
TypePath typePath,
String descriptor)
Constructs a new
AnnotationNode . |
public int typeRef
TypeReference
.public TypePath typePath
public TypeAnnotationNode(int typeRef, TypePath typePath, 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.IllegalStateException
- If a subclass calls this constructor.public TypeAnnotationNode(int api, int typeRef, TypePath typePath, String descriptor)
AnnotationNode
.api
- the ASM API version implemented by this visitor. Must be one of Opcodes.ASM4
, Opcodes.ASM5
, Opcodes.ASM6
, Opcodes.ASM7
or Opcodes.ASM8
.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.Copyright © 2022. All rights reserved.