org.objectweb.asm.commons
public class LocalVariablesSorter extends MethodAdapter
Field Summary | |
---|---|
protected int | firstLocal
Index of the first local variable, after formal parameters. |
protected int | nextLocal
Index of the next local variable to be created by LocalVariablesSorter. |
Constructor Summary | |
---|---|
LocalVariablesSorter(int access, String desc, MethodVisitor mv)
Creates a new LocalVariablesSorter.
|
Method Summary | |
---|---|
int | newLocal(Type type)
Creates a new local variable of the given type.
|
protected int | newLocalMapping(Type type) |
protected void | setLocalType(int local, Type type)
Sets the current type of the given local variable. |
void | visitFrame(int type, int nLocal, Object[] local, int nStack, Object[] stack) |
void | visitIincInsn(int var, int increment) |
void | visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) |
void | visitMaxs(int maxStack, int maxLocals) |
void | visitVarInsn(int opcode, int var) |
Parameters: access access flags of the adapted method. desc the method's descriptor (see Type
). mv the method visitor to which this adapter delegates calls.
Parameters: type the type of the local variable to be created.
Returns: the identifier of the newly created local variable.
Parameters: local a local variable identifier, as returned by newLocal()
. type the type of the value being stored in the local variable