|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.ipd.sdq.ByCounter.instrumentation.LocalVariableManager
public final class LocalVariableManager
Class for managing the indices for local variables in bytecode. For all getNew* methods, the outcome depends on the setting of getUseHighRegisters().
Constructor Summary | |
---|---|
LocalVariableManager(boolean useHighRegisters)
|
Method Summary | |
---|---|
int |
getNewIntArrayVar(org.objectweb.asm.MethodVisitor mv)
Register a new int[]. |
int |
getNewIntVar(org.objectweb.asm.MethodVisitor mv)
Register a new int and initialize it with 0. |
int |
getNewLongArrayVar(org.objectweb.asm.MethodVisitor mv)
Register a new long[]. |
int |
getNewLongVar(org.objectweb.asm.MethodVisitor mv)
Register a new long and initialize it with 0. |
int |
getNewStringArrayVar(org.objectweb.asm.MethodVisitor mv)
Register a new String[]. |
int |
getNewVarFor(java.lang.String readableDescr,
org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type type,
int localVarSize)
Register a new variable of type 'type'. |
boolean |
getUseHighRegisters()
|
void |
setLVS(org.objectweb.asm.commons.LocalVariablesSorter pLvars)
Sets the LocalVariableSorter that is used to generate new locals. |
void |
setUseHighRegisters(boolean useHighRegisters)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalVariableManager(boolean useHighRegisters)
Method Detail |
---|
public int getNewIntArrayVar(org.objectweb.asm.MethodVisitor mv)
mv
- The MethodVisitor
to use for inserting initialisation instructions.
public int getNewIntVar(org.objectweb.asm.MethodVisitor mv)
mv
- The MethodVisitor
to use for inserting initialisation instructions.
public int getNewLongArrayVar(org.objectweb.asm.MethodVisitor mv)
mv
- The MethodVisitor
to use for inserting initialisation instructions.
public int getNewLongVar(org.objectweb.asm.MethodVisitor mv)
mv
- The MethodVisitor
to use for inserting initialisation instructions.
public int getNewStringArrayVar(org.objectweb.asm.MethodVisitor mv)
mv
- The MethodVisitor
to use for inserting initialisation instructions.
public int getNewVarFor(java.lang.String readableDescr, org.objectweb.asm.MethodVisitor mv, org.objectweb.asm.Type type, int localVarSize)
readableDescr
- A readable description of the type. Used for debugging purposes only.mv
- The MethodVisitor
to use for inserting initialisation instructions.type
- The type of the new local.localVarSize
- The number of local variables that the var blocks. This is 1 for int, 2 for long, 1 for Object etc.
public boolean getUseHighRegisters()
public void setLVS(org.objectweb.asm.commons.LocalVariablesSorter pLvars)
pLvars
- LocalVariableSorterpublic void setUseHighRegisters(boolean useHighRegisters)
useHighRegisters
- When true, use register numbers near the MAX_LOCALS constant.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |