T
- Content-type of the stacks contentspublic class SimulatedStack<T> extends Object implements Serializable
Constructor and Description |
---|
SimulatedStack() |
Modifier and Type | Method and Description |
---|---|
SimulatedStackframe<T> |
createAndPushNewStackFrame()
Add a stackframe to this stack.
|
SimulatedStackframe<T> |
createAndPushNewStackFrame(SimulatedStackframe<T> parent)
Add a stackframe to this stack using the given frame as parent frame
|
SimulatedStackframe<T> |
currentStackFrame() |
void |
pushStackFrame(SimulatedStackframe<T> copyFrame)
Add a stackframe on top of this stack.
|
void |
removeStackFrame()
Pop the topmost stackframe.
|
int |
size() |
public SimulatedStackframe<T> createAndPushNewStackFrame()
public SimulatedStackframe<T> createAndPushNewStackFrame(SimulatedStackframe<T> parent)
parent
- The parent frame of the frame to createpublic SimulatedStackframe<T> currentStackFrame()
public void removeStackFrame()
public int size()
public void pushStackFrame(SimulatedStackframe<T> copyFrame)
copyFrame
- The frame to push on the stack