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: public interface Enumerator {
10: /**Return the element under the cursor; return null if !valid() or
11: * if called before first next() call.
12: */
13: public Object cursor();
14:
15: /**Return the next element in the enumeration; first call to next()
16: * returns the first element.
17: */
18: public Object next();
19:
20: /**Any more elements in the enumeration? */
21: public boolean valid();
22: }
|