|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.DefaultJavaStack
public class DefaultJavaStack
The default implementation of the JavaStack interface which represents a thread stack.
| Constructor Summary | |
|---|---|
DefaultJavaStack(JHeap heap)
Creates a new java stack allocated into the specified heap. |
|
| Method Summary | |
|---|---|
int |
getPosition()
Returns the position of the first byte of the memory allocated for the Java stack representing by this JavaStack object into the Corosol heap memory. |
int |
getSize()
Returns the size in bytes of this object into the Corosol memory heap. |
boolean |
isEmpty()
Tests if this stack is empty. |
JStackFrame |
peekFrame()
Returns the current frame corresponding to the frame at the top of this stack. |
void |
popFrame()
Pops the current frame corresponding to the frame at the top of this stack. |
void |
pushFrame(JClassMethod method)
Pushes a new frame which will be used for the execution of the specified method. |
void |
setPosition(int index)
Sets the position of the first byte of the memory allocated for the Java stack representing by this JavaStack object into the Corosol heap memory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJavaStack(JHeap heap)
heap - the heap where this Java Stack are allocated| Method Detail |
|---|
public int getPosition()
getPosition in interface JAllocatablepublic void setPosition(int index)
setPosition in interface JAllocatableindex - the position of the first byte of the memory allocated for
this Java stack into the Corosol heap memory.public int getSize()
getSize in interface JAllocatablepublic void pushFrame(JClassMethod method)
pushFrame in interface JavaStackmethod - a methodpublic void popFrame()
popFrame in interface JavaStackjava.lang.EmptyStackException - if java stack is emptypublic JStackFrame peekFrame()
peekFrame in interface JavaStackjava.lang.EmptyStackException - if java stack is emptypublic boolean isEmpty()
isEmpty in interface JavaStack
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||