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