private static class LocalVariableTableParameterNameDiscoverer.LocalVariableTableVisitor extends MethodVisitor
Modifier and Type | Field and Description |
---|---|
private Type[] |
args |
private java.lang.Class<?> |
clazz |
private static java.lang.String |
CONSTRUCTOR |
private boolean |
hasLvtInfo |
private boolean |
isStatic |
private int[] |
lvtSlotIndex |
private java.util.Map<java.lang.reflect.Member,java.lang.String[]> |
memberMap |
private java.lang.String |
name |
private java.lang.String[] |
parameterNames |
api, mv
Constructor and Description |
---|
LocalVariableTableVisitor(java.lang.Class<?> clazz,
java.util.Map<java.lang.reflect.Member,java.lang.String[]> map,
java.lang.String name,
java.lang.String desc,
boolean isStatic) |
Modifier and Type | Method and Description |
---|---|
private static int[] |
computeLvtSlotIndices(boolean isStatic,
Type[] paramTypes) |
private static boolean |
isWideType(Type aType) |
private java.lang.reflect.Member |
resolveMember() |
void |
visitEnd()
Visits the end of the method.
|
void |
visitLocalVariable(java.lang.String name,
java.lang.String description,
java.lang.String signature,
Label start,
Label end,
int index)
Visits a local variable declaration.
|
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
private static final java.lang.String CONSTRUCTOR
private final java.lang.Class<?> clazz
private final java.util.Map<java.lang.reflect.Member,java.lang.String[]> memberMap
private final java.lang.String name
private final Type[] args
private final boolean isStatic
private java.lang.String[] parameterNames
private boolean hasLvtInfo
private final int[] lvtSlotIndex
public LocalVariableTableVisitor(java.lang.Class<?> clazz, java.util.Map<java.lang.reflect.Member,java.lang.String[]> map, java.lang.String name, java.lang.String desc, boolean isStatic)
public void visitLocalVariable(java.lang.String name, java.lang.String description, java.lang.String signature, Label start, Label end, int index)
MethodVisitor
visitLocalVariable
in class MethodVisitor
name
- the name of a local variable.description
- the type descriptor of this local variable.signature
- the type signature of this local variable. May be
null if the local variable type does not use generic
types.start
- the first instruction corresponding to the scope of this local
variable (inclusive).end
- the last instruction corresponding to the scope of this local
variable (exclusive).index
- the local variable's index.public void visitEnd()
MethodVisitor
visitEnd
in class MethodVisitor
private java.lang.reflect.Member resolveMember()
private static int[] computeLvtSlotIndices(boolean isStatic, Type[] paramTypes)
private static boolean isWideType(Type aType)