1 package persistence.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/license.html 6 * 7 */ 8 9 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 } 23