gnu.bytecode
public class Variable extends Location implements Enumeration
Constructor Summary | |
---|---|
Variable() | |
Variable(String name) | |
Variable(String name, Type type) |
Method Summary | |
---|---|
void | allocateLocal(CodeAttr code)
Allocate slots for a local variable (or parameter). |
boolean | dead() |
void | freeLocal(CodeAttr code) |
boolean | hasMoreElements() |
boolean | isAssigned() Returns true iff assigned to a local variable slot.
|
boolean | isParameter() |
boolean | isSimple() Returns true for a "simple" variable.
|
Object | nextElement() |
Variable | nextVar() |
boolean | reserveLocal(int varIndex, CodeAttr code) Assign a local variable to a given local variable slot. |
void | setParameter(boolean parameter) |
void | setSimple(boolean simple) |
String | toString() |
Parameters: varIndex the index of the local variables.
Returns: true iff we succeeded (i.e. the slot was unused)