KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > antlr > collections > List


1 package 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/RIGHTS.html
6  *
7  * $Id: //depot/code/org.antlr/main/main/antlr/collections/List.java#4 $
8  */

9
10 import java.util.Enumeration JavaDoc;
11 import java.util.NoSuchElementException JavaDoc;
12
13 /**A simple List interface that describes operations
14  * on a list.
15  */

16 public interface List {
17     public void add(Object JavaDoc o); // can insert at head or append.
18

19     public void append(Object JavaDoc o);
20
21     public Object JavaDoc elementAt(int index) throws NoSuchElementException JavaDoc;
22
23     public Enumeration JavaDoc elements();
24
25     public boolean includes(Object JavaDoc o);
26
27     public int length();
28 }
29
Popular Tags