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