public class Env.ExecStack
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Is the stack empty?
|
java.lang.Object |
peek()
Peek the top of the stack
|
java.lang.Object |
peekAt(int i)
Peek the stack at position passed in (does error checking on the position)
|
int |
peekType()
Peek the type of the object at the top of the stack.
|
int |
peekTypeAt(int i)
Peek the tpe of the object at position `i` in the stack.
|
java.lang.Object |
pop()
Pop one of the top of the stack.
|
void |
push(java.lang.Object t)
Push an Object onto the stack
|
int |
size()
Get the size of the stack.
|
public java.lang.Object peek()
public java.lang.Object peekAt(int i)
i - The position at which to peek the stackpublic int peekType()
public int peekTypeAt(int i)
i - The position at which to peek the stackpublic boolean isEmpty()
public int size()
public java.lang.Object pop()
public void push(java.lang.Object t)
t - is the Object to be pushed onto the stack.