public class CallStack
extends java.lang.Object
Constructor and Description |
---|
CallStack() |
Modifier and Type | Method and Description |
---|---|
Procedure |
bottom()
Returns the bottom procedure in the stack, i.e.
|
boolean |
contains(Procedure proc)
Checks if the specified procedure exists in the call stack.
|
int |
height()
Returns the current height of the call stack.
|
Procedure[] |
toArray()
Returns all procedures on the stack in an array.
|
Procedure |
top()
Returns the top procedure in the stack, i.e.
|
public boolean contains(Procedure proc)
proc
- the procedure definitionpublic int height()
public Procedure bottom()
public Procedure top()
public Procedure[] toArray()