|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JStackFrame
A JStackFrame object represents a stack frame, stored by a thread Java Stack. A stack frame is used to store data and partial results, as well as to perform dynamic linking , return values for methods, and dispatch exceptions. A new frame is created each time a method is invoked. A frame is destroyed when its method invocation completes, whether that completion is normal or abrupt (it throws an uncaught exception). Frames are allocated from the Java virtual machine stack of the thread creating the frame. Each frame has its own array of local variables, its own operand stack, and a reference to the runtime constant pool of the class of the current method.
| Method Summary | |
|---|---|
int |
getCurrentSize()
Returns the current size of this frame. |
int |
getMaxLocals()
Returns the maximum capacity of the local variable array of this frame. |
int |
getMaxStack()
Returns the maximum capacity of the operand stack of this frame. |
double |
loadDouble(int index)
Returns the double value stored at the specified position into the local variable array of this frame. |
float |
loadFloat(int index)
Returns the float value stored at the specified position into the local variable array of this frame. |
int |
loadInt(int index)
Returns the int value stored at the specified position into the local variable array of this frame. |
long |
loadLong(int index)
Returns the long value stored at the specified position into the local variable array of this frame. |
JHeapObject |
loadReference(int index)
Returns the object whose the reference is stored at the specified position into the local variable array of this frame. |
JHeapObject |
peekCallerObject(JClassMethod method)
Peeks, inside the operand stack, the reference of the caller object of the specified method. |
double |
popDouble()
Removes the double value at the top of the operand stack of this frame. |
float |
popFloat()
Removes the float value at the top of the operand stack of this frame. |
int |
popInt()
Removes the int value at the top of the operand stack of this frame. |
long |
popLong()
Removes the long value at the top of the operand stack of this frame. |
JHeapObject |
popReference()
Removes the reference of an object at the top of the operand stack of this frame. |
void |
pushDouble(double value)
Pushes an double value onto the top of the operand stack of this stack frame. |
void |
pushFloat(float value)
Pushes an float value onto the top of the operand stack of this stack frame. |
void |
pushInt(int value)
Pushes an int value onto the top of the operand stack of this stack frame. |
void |
pushLong(long value)
Pushes an long value onto the top of the operand stack of this stack frame. |
void |
pushReference(JHeapObject object)
Pushes the reference of the specified object onto the top of the operand stack of this stack frame. |
void |
storeDouble(double value,
int index)
Stores an double value at the specified index into the local variable array of this frame. |
void |
storeFloat(float value,
int index)
Stores an float value at the specified index into the local variable array of this frame. |
void |
storeInt(int value,
int index)
Stores an int value at the specified index into the local variable array of this frame. |
void |
storeLong(long value,
int index)
Stores an long value at the specified index into the local variable array of this frame. |
void |
storeReference(JHeapObject object,
int index)
Stores the reference of the specified object at the specified index into the local variable array of this frame. |
| Methods inherited from interface fr.umlv.corosol.component.JAllocatable |
|---|
getPosition, getSize, setPosition |
| Method Detail |
|---|
void pushInt(int value)
value - the int value to be pushed onto the operand stackvoid pushFloat(float value)
value - the float value to be pushed onto the operand stackvoid pushLong(long value)
value - the long value to be pushed onto the operand stackvoid pushDouble(double value)
value - the double value to be pushed onto the operand stackvoid pushReference(JHeapObject object)
object - an objectint popInt()
float popFloat()
long popLong()
double popDouble()
JHeapObject popReference()
JHeapObject peekCallerObject(JClassMethod method)
method - a method
void storeInt(int value,
int index)
value - the int value to be storedindex - an index into the local variables array
void storeFloat(float value,
int index)
value - the float value to be storedindex - an index into the local variables array
void storeLong(long value,
int index)
value - the long value to be storedindex - an index into the local variables array
void storeDouble(double value,
int index)
value - the double value to be storedindex - an index into the local variables array
void storeReference(JHeapObject object,
int index)
object - an object whose the reference will be storedindex - an index into the local variables arrayint loadInt(int index)
index - an index into the local variable array
float loadFloat(int index)
index - an index into the local variable array
long loadLong(int index)
index - an index into the local variable array
double loadDouble(int index)
index - an index into the local variable array
JHeapObject loadReference(int index)
index - an index into the local variable array
int getCurrentSize()
int getMaxLocals()
int getMaxStack()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||