antlr.collections
Interface Stack
- All Known Implementing Classes:
- LList
- public interface Stack
A simple stack definition; restrictive in that you cannot
access arbitrary stack elements.
- Author:
- Terence Parr
MageLang Institute
Method Summary |
int |
height()
|
java.lang.Object |
pop()
|
void |
push(java.lang.Object o)
|
java.lang.Object |
top()
|
height
public int height()
pop
public java.lang.Object pop()
throws java.util.NoSuchElementException
java.util.NoSuchElementException
push
public void push(java.lang.Object o)
top
public java.lang.Object top()
throws java.util.NoSuchElementException
java.util.NoSuchElementException