antlr.collections
Interface Stack

All Known Implementing Classes:
LList

public interface Stack

Untamed: A simple stack definition; restrictive in that you cannot access arbitrary stack elements.

Author:
Terence Parr MageLang Institute

Method Summary
 int height()
          Enabled:
 Object pop()
          Enabled:
 void push(Object o)
          Enabled:
 Object top()
          Enabled:
 

Method Detail

height

public int height()
Enabled:


pop

public Object pop()
           throws NoSuchElementException
Enabled:

NoSuchElementException

push

public void push(Object o)
Enabled:


top

public Object top()
           throws NoSuchElementException
Enabled:

NoSuchElementException


comments?