类 LocalVariableAnnotationNode
java.lang.Object
cn.taketoday.bytecode.AnnotationVisitor
cn.taketoday.bytecode.tree.AnnotationNode
cn.taketoday.bytecode.tree.TypeAnnotationNode
cn.taketoday.bytecode.tree.LocalVariableAnnotationNode
A node that represents a type annotation on a local or resource variable.
- 作者:
- Eric Bruneton
-
字段概要
字段修饰符和类型字段说明The 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).从类继承的字段 cn.taketoday.bytecode.tree.TypeAnnotationNode
typePath, typeRef从类继承的字段 cn.taketoday.bytecode.tree.AnnotationNode
desc, values从类继承的字段 cn.taketoday.bytecode.AnnotationVisitor
av -
构造器概要
构造器构造器说明LocalVariableAnnotationNode(int typeRef, TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, String descriptor) Constructs a newLocalVariableAnnotationNode. -
方法概要
修饰符和类型方法说明voidaccept(MethodVisitor methodVisitor, boolean visible) Makes the given visitor visit this type annotation.从类继承的方法 cn.taketoday.bytecode.tree.AnnotationNode
accept, visit, visitAnnotation, visitArray, visitEnd, visitEnum
-
字段详细资料
-
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.
-
-
构造器详细资料
-
LocalVariableAnnotationNode
public LocalVariableAnnotationNode(int typeRef, TypePath typePath, LabelNode[] start, LabelNode[] end, int[] index, String descriptor) Constructs a newLocalVariableAnnotationNode.- 参数:
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.
-
-
方法详细资料
-
accept
Makes the given visitor visit this type annotation.- 参数:
methodVisitor- the visitor that must visit this annotation.visible- true if the annotation is visible at runtime.
-