| |
|
| java.lang.Object gnu.bytecode.Location gnu.bytecode.Variable
UNASSIGNED | final static int UNASSIGNED(Code) | | |
offset | int offset(Code) | | The local variable slot number used by this variable.
Not used (by the codegen layer) if !isSimple().
|
Variable | public Variable()(Code) | | |
allocateLocal | public void allocateLocal(CodeAttr code)(Code) | | Allocate slots for a local variable (or parameter).
|
dead | final public boolean dead()(Code) | | |
hasMoreElements | final public boolean hasMoreElements()(Code) | | |
isAssigned | final public boolean isAssigned()(Code) | | Returns true iff assigned to a local variable slot.
Only relevant if isSimple ().
|
isParameter | final public boolean isParameter()(Code) | | |
isSimple | final public boolean isSimple()(Code) | | Returns true for a "simple" variable.
A "simple" Variable can be stack-allocated using standard local
variable slots. It is allocated by the codegen package.
A non-simple variable may need heap allocation, or more more
complex access; it is basically ignored by the codegen package,
and must be managed by higher layers.
|
reserveLocal | public boolean reserveLocal(int varIndex, CodeAttr code)(Code) | | Assign a local variable to a given local variable slot.
Parameters: varIndex - the index of the local variables. true iff we succeeded (i.e. the slot was unused) |
setParameter | final public void setParameter(boolean parameter)(Code) | | |
setSimple | final public void setSimple(boolean simple)(Code) | | |
shouldEmit | boolean shouldEmit()(Code) | | |
|
|
|