Package org.objectweb.asm.tree
Class LocalVariableAnnotationNode
- java.lang.Object
-
- org.objectweb.asm.AnnotationVisitor
-
- org.objectweb.asm.tree.AnnotationNode
-
- org.objectweb.asm.tree.TypeAnnotationNode
-
- org.objectweb.asm.tree.LocalVariableAnnotationNode
-
public class LocalVariableAnnotationNode extends TypeAnnotationNode
A node that represents a type annotation on a local or resource variable.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<LabelNode>
end
The last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive).java.util.List<java.lang.Integer>
index
The local variable's index in each range.java.util.List<LabelNode>
start
The fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive).-
Fields inherited from class org.objectweb.asm.tree.TypeAnnotationNode
typePath, typeRef
-
Fields inherited from class org.objectweb.asm.tree.AnnotationNode
desc, values
-
-
Constructor Summary
Constructors Constructor Description LocalVariableAnnotationNode(int api, int typeRef, org.objectweb.asm.TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, java.lang.String descriptor)
Constructs a newLocalVariableAnnotationNode
.LocalVariableAnnotationNode(int typeRef, org.objectweb.asm.TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, java.lang.String descriptor)
Constructs a newLocalVariableAnnotationNode
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(org.objectweb.asm.MethodVisitor methodVisitor, boolean visible)
Makes the given visitor visit this type annotation.-
Methods inherited from class org.objectweb.asm.tree.AnnotationNode
accept, check, visit, visitAnnotation, visitArray, visitEnd, visitEnum
-
-
-
-
Field Detail
-
start
public java.util.List<LabelNode> start
The fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive). Must not be null.
-
end
public java.util.List<LabelNode> 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
public java.util.List<java.lang.Integer> 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 Detail
-
LocalVariableAnnotationNode
public LocalVariableAnnotationNode(int typeRef, org.objectweb.asm.TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, java.lang.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, org.objectweb.asm.TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, java.lang.String descriptor)
Constructs a newLocalVariableAnnotationNode
.- Parameters:
api
- the ASM API version implemented by this visitor. Must be one ofOpcodes.ASM4
,Opcodes.ASM5
,Opcodes.ASM6
,Opcodes.ASM7
,Opcodes.ASM8
orOpcodes.ASM9
.typeRef
- a reference to the annotated type. SeeTypeReference
.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.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.
-
-