public class LocalVariableAnnotationNode extends TypeAnnotationNode
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).
|
desc, values
api, av
typePath, typeRef
Constructor | Description |
---|---|
LocalVariableAnnotationNode(int api,
int typeRef,
TypePath typePath,
LabelNode[] start,
LabelNode[] end,
int[] index,
java.lang.String descriptor) |
Constructs a new
LocalVariableAnnotationNode . |
LocalVariableAnnotationNode(int typeRef,
TypePath typePath,
LabelNode[] start,
LabelNode[] end,
int[] index,
java.lang.String descriptor) |
Constructs a new
LocalVariableAnnotationNode . |
Modifier and Type | Method | Description |
---|---|---|
void |
accept(MethodVisitor methodVisitor,
boolean visible) |
Makes the given visitor visit this type annotation.
|
accept, check, visit, visitAnnotation, visitArray, visitEnd, visitEnum
public java.util.List<LabelNode> start
public java.util.List<LabelNode> end
public java.util.List<java.lang.Integer> index
public LocalVariableAnnotationNode(int typeRef, TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, java.lang.String descriptor)
LocalVariableAnnotationNode
. Subclasses must not use this
constructor. Instead, they must use the LocalVariableAnnotationNode(int, TypePath,
LabelNode[], LabelNode[], int[], 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.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.public LocalVariableAnnotationNode(int api, int typeRef, TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, java.lang.String descriptor)
LocalVariableAnnotationNode
.api
- the ASM API version implemented by this visitor. Must be one of Opcodes.ASM4
, Opcodes.ASM5
, Opcodes.ASM6
or Opcodes.ASM7_EXPERIMENTAL
.typeRef
- a reference to the annotated type. See TypeReference
.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.public void accept(MethodVisitor methodVisitor, boolean visible)
methodVisitor
- the visitor that must visit this annotation.visible
- true if the annotation is visible at runtime.