Module org.eclipse.persistence.asm
Class LocalVariableAnnotationNode
java.lang.Object
org.eclipse.persistence.internal.libraries.asm.AnnotationVisitor
org.eclipse.persistence.internal.libraries.asm.tree.AnnotationNode
org.eclipse.persistence.internal.libraries.asm.tree.TypeAnnotationNode
org.eclipse.persistence.internal.libraries.asm.tree.LocalVariableAnnotationNode
A node that represents a type annotation on a local or resource variable.
-
Field Summary
Modifier and TypeFieldDescriptionThe last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive).The local variable's index in each range.The fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive).Fields inherited from class org.eclipse.persistence.internal.libraries.asm.tree.TypeAnnotationNode
typePath, typeRef
Fields inherited from class org.eclipse.persistence.internal.libraries.asm.tree.AnnotationNode
desc, values
Fields inherited from class org.eclipse.persistence.internal.libraries.asm.AnnotationVisitor
api, av
-
Constructor Summary
ConstructorDescriptionLocalVariableAnnotationNode
(int api, int typeRef, TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, String descriptor) Constructs a newLocalVariableAnnotationNode
.LocalVariableAnnotationNode
(int typeRef, TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, String descriptor) Constructs a newLocalVariableAnnotationNode
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(MethodVisitor methodVisitor, boolean visible) Makes the given visitor visit this type annotation.Methods inherited from class org.eclipse.persistence.internal.libraries.asm.tree.AnnotationNode
accept, check, visit, visitAnnotation, visitArray, visitEnd, visitEnum
Methods inherited from class org.eclipse.persistence.internal.libraries.asm.AnnotationVisitor
getDelegate
-
Field Details
-
start
The fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive). Must not be null. -
end
The last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive). This list must have the same size as the 'start' list. Must not be null. -
index
The local variable's index in each range. This list must have the same size as the 'start' list. Must not be null.
-
-
Constructor Details
-
LocalVariableAnnotationNode
public LocalVariableAnnotationNode(int typeRef, TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, String descriptor) Constructs a newLocalVariableAnnotationNode
. Subclasses must not use this constructor. Instead, they must use theLocalVariableAnnotationNode(int, TypePath, LabelNode[], LabelNode[], int[], 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.start
- the fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive).end
- the last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive). This array must have the same size as the 'start' array.index
- the local variable's index in each range. This array must have the same size as the 'start' array.descriptor
- the class descriptor of the annotation class.
-
LocalVariableAnnotationNode
public LocalVariableAnnotationNode(int api, int typeRef, TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, String descriptor) Constructs a newLocalVariableAnnotationNode
.- 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.start
- the fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive).end
- the last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive). This array must have the same size as the 'start' array.index
- the local variable's index in each range. This array must have the same size as the 'start' array.descriptor
- the class descriptor of the annotation class.
-
-
Method Details
-
accept
Makes the given visitor visit this type annotation.- Parameters:
methodVisitor
- the visitor that must visit this annotation.visible
- true if the annotation is visible at runtime.
-