All Downloads are FREE. Search and download functionalities are using the official Maven repository.

persistence.antlr.collections.Enumerator Maven / Gradle / Ivy

The newest version!
package persistence.antlr.collections;

/* ANTLR Translator Generator
 * Project led by Terence Parr at http://www.jGuru.com
 * Software rights: http://www.antlr.org/license.html
 *
 * $Id: Enumerator.java,v 1.1 2006/02/08 21:31:11 tware Exp $
 */

public interface Enumerator {
    /**Return the element under the cursor; return null if !valid() or
     * if called before first next() call.
     */
    public Object cursor();

    /**Return the next element in the enumeration; first call to next()
     * returns the first element.
     */
    public Object next();

    /**Any more elements in the enumeration? */
    public boolean valid();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy