Top Description Fields Constructors Methods
org.objectweb.asm.tree

public Class TypeAnnotationNode

extends AnnotationNode
Class Inheritance
Known Direct Subclasses
org.objectweb.asm.tree.LocalVariableAnnotationNode
Imports
org.objectweb.asm.Opcodes, .TypePath

A node that represents a type annotation.
Author
Eric Bruneton

Field Summary

Modifier and TypeField and Description
public TypePath
typePath

The path to the annotated type argument, wildcard bound, array element type, or static outer type within the referenced type.

public int
typeRef

A reference to the annotated type.

Inherited from org.objectweb.asm.tree.AnnotationNode:
descvalues

Constructor Summary

AccessConstructor and Description
public
TypeAnnotationNode(final int
a reference to the annotated type. See org.objectweb.asm.TypeReference.
typeRef
,
final 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.
typePath
,
final String
the class descriptor of the annotation class.
descriptor
)

Constructs a new AnnotationNode.

public
TypeAnnotationNode(final int
the ASM API version implemented by this visitor. Must be one of the ASMx values in Opcodes.
api
,
final int
a reference to the annotated type. See org.objectweb.asm.TypeReference.
typeRef
,
final 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.
typePath
,
final String
the class descriptor of the annotation class.
descriptor
)

Constructs a new AnnotationNode.

Method Summary

Inherited from org.objectweb.asm.tree.AnnotationNode:
acceptacceptcheckvisitvisitAnnotationvisitArrayvisitEndvisitEnum

Field Detail

typePathback to summary
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.

typeRefback to summary
public int typeRef

A reference to the annotated type. See org.objectweb.asm.TypeReference.

Constructor Detail

TypeAnnotationNodeback to summary
public TypeAnnotationNode(final int typeRef, final TypePath typePath, final String descriptor)

Constructs a new AnnotationNode. Subclasses must not use this constructor. Instead, they must use the TypeAnnotationNode(int, int, TypePath, String) version.

Parameters
typeRef:int

a reference to the annotated type. See org.objectweb.asm.TypeReference.

typePath: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:String

the class descriptor of the annotation class.

Exceptions
IllegalStateException:
If a subclass calls this constructor.
TypeAnnotationNodeback to summary
public TypeAnnotationNode(final int api, final int typeRef, final TypePath typePath, final String descriptor)

Constructs a new AnnotationNode.

Parameters
api:int

the ASM API version implemented by this visitor. Must be one of the ASMx values in Opcodes.

typeRef:int

a reference to the annotated type. See org.objectweb.asm.TypeReference.

typePath: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:String

the class descriptor of the annotation class.