KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > collections > Enumerator


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 JavaDoc cursor();
14
15     /**Return the next element in the enumeration; first call to next()
16      * returns the first element.
17      */

18     public Object JavaDoc next();
19
20     /**Any more elements in the enumeration? */
21     public boolean valid();
22 }
23
Popular Tags