public interface Frame
Object
.Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArguments()
Retrieves the arguments object from this frame.
|
boolean |
getBoolean(FrameSlot slot)
Read access to a local variable of type boolean.
|
byte |
getByte(FrameSlot slot)
Read access to a local variable of type byte.
|
double |
getDouble(FrameSlot slot)
Read access to a local variable of type double.
|
float |
getFloat(FrameSlot slot)
Read access to a local variable of type float.
|
FrameDescriptor |
getFrameDescriptor() |
int |
getInt(FrameSlot slot)
Read access to a local variable of type int.
|
long |
getLong(FrameSlot slot)
Read access to a local variable of type long.
|
java.lang.Object |
getObject(FrameSlot slot)
Read access to a local variable of type
Object . |
java.lang.Object |
getValue(FrameSlot slot)
Read access to a local variable of any type.
|
boolean |
isBoolean(FrameSlot slot)
Check whether the given
FrameSlot is of type boolean. |
boolean |
isByte(FrameSlot slot)
Check whether the given
FrameSlot is of type byte. |
boolean |
isDouble(FrameSlot slot)
Check whether the given
FrameSlot is of type double. |
boolean |
isFloat(FrameSlot slot)
Check whether the given
FrameSlot is of type float. |
boolean |
isInt(FrameSlot slot)
Check whether the given
FrameSlot is of type int. |
boolean |
isLong(FrameSlot slot)
Check whether the given
FrameSlot is of type long. |
boolean |
isObject(FrameSlot slot)
Check whether the given
FrameSlot is of type object. |
MaterializedFrame |
materialize()
Materializes this frame, which allows it to be stored in a field or cast to
Object . |
void |
setBoolean(FrameSlot slot,
boolean value)
Write access to a local variable of type boolean.
|
void |
setByte(FrameSlot slot,
byte value)
Write access to a local variable of type byte.
|
void |
setDouble(FrameSlot slot,
double value)
Write access to a local variable of type double.
|
void |
setFloat(FrameSlot slot,
float value)
Write access to a local variable of type float.
|
void |
setInt(FrameSlot slot,
int value)
Write access to a local variable of type int.
|
void |
setLong(FrameSlot slot,
long value)
Write access to a local variable of type long.
|
void |
setObject(FrameSlot slot,
java.lang.Object value)
Write access to a local variable of type
Object . |
FrameDescriptor getFrameDescriptor()
java.lang.Object[] getArguments()
java.lang.Object getObject(FrameSlot slot) throws FrameSlotTypeException
Object
.slot
- the slot of the local variableFrameSlotTypeException
void setObject(FrameSlot slot, java.lang.Object value)
Object
.slot
- the slot of the local variablevalue
- the new value of the local variablebyte getByte(FrameSlot slot) throws FrameSlotTypeException
slot
- the slot of the local variableFrameSlotTypeException
void setByte(FrameSlot slot, byte value)
slot
- the slot of the local variablevalue
- the new value of the local variableboolean getBoolean(FrameSlot slot) throws FrameSlotTypeException
slot
- the slot of the local variableFrameSlotTypeException
void setBoolean(FrameSlot slot, boolean value)
slot
- the slot of the local variablevalue
- the new value of the local variableint getInt(FrameSlot slot) throws FrameSlotTypeException
slot
- the slot of the local variableFrameSlotTypeException
void setInt(FrameSlot slot, int value)
slot
- the slot of the local variablevalue
- the new value of the local variablelong getLong(FrameSlot slot) throws FrameSlotTypeException
slot
- the slot of the local variableFrameSlotTypeException
void setLong(FrameSlot slot, long value)
slot
- the slot of the local variablevalue
- the new value of the local variablefloat getFloat(FrameSlot slot) throws FrameSlotTypeException
slot
- the slot of the local variableFrameSlotTypeException
void setFloat(FrameSlot slot, float value)
slot
- the slot of the local variablevalue
- the new value of the local variabledouble getDouble(FrameSlot slot) throws FrameSlotTypeException
slot
- the slot of the local variableFrameSlotTypeException
void setDouble(FrameSlot slot, double value)
slot
- the slot of the local variablevalue
- the new value of the local variablejava.lang.Object getValue(FrameSlot slot)
slot
- the slot of the local variableMaterializedFrame materialize()
Object
. The frame however looses the ability to be packed or to access the
caller frame.