fr.umlv.corosol.component
Interface JavaStack

All Superinterfaces:
JAllocatable, JObject
All Known Implementing Classes:
DefaultJavaStack, TypedJavaStack

public interface JavaStack
extends JObject, JAllocatable

An object of the JavaStack interface represents a thread stack.

Author:
DELERAY Christophe

Method Summary
 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.
 
Methods inherited from interface fr.umlv.corosol.component.JAllocatable
getPosition, getSize, setPosition
 

Method Detail

pushFrame

void pushFrame(JClassMethod method)
Pushes a new frame which will be used for the execution of the specified method.

Parameters:
method - a method

popFrame

void popFrame()
Pops the current frame corresponding to the frame at the top of this stack.

Throws:
java.lang.EmptyStackException - if java stack is empty

peekFrame

JStackFrame peekFrame()
Returns the current frame corresponding to the frame at the top of this stack.

Returns:
the current frame
Throws:
java.lang.EmptyStackException - if java stack is empty

isEmpty

boolean isEmpty()
Tests if this stack is empty.

Returns:
true if the stack is empty and false otherwise