KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > collections > Stack


1 package persistence.antlr.collections;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/license.html
6  *
7  */

8
9 import java.util.NoSuchElementException JavaDoc;
10
11 /** A simple stack definition; restrictive in that you cannot
12  * access arbitrary stack elements.
13  *
14  * @author Terence Parr
15  * <a HREF=http://www.MageLang.com>MageLang Institute</a>
16  */

17 public interface Stack {
18     public int height();
19
20     public Object JavaDoc pop() throws NoSuchElementException JavaDoc;
21
22     public void push(Object JavaDoc o);
23
24     public Object JavaDoc top() throws NoSuchElementException JavaDoc;
25 }
26
Popular Tags