01: package antlr.collections;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: import java.util.Enumeration;
09: import java.util.NoSuchElementException;
10:
11: /**A simple List interface that describes operations
12: * on a list.
13: */
14: public interface List {
15: public void add(Object o); // can insert at head or append.
16:
17: public void append(Object o);
18:
19: public Object elementAt(int index) throws NoSuchElementException;
20:
21: public Enumeration elements();
22:
23: public boolean includes(Object o);
24:
25: public int length();
26: }
|