FileDocCategorySizeDatePackage
ASTEnumerator.javaAPI DocGlassfish v2 API1072Wed Aug 30 15:34:14 BST 2006persistence.antlr.collections.impl

ASTEnumerator

public class ASTEnumerator extends Object implements persistence.antlr.collections.ASTEnumeration

Fields Summary
VectorEnumerator
nodes
The list of root nodes for subtrees that match
int
i
Constructors Summary
public ASTEnumerator(persistence.antlr.collections.impl.Vector v)



       
        nodes = new VectorEnumerator(v);
    
Methods Summary
public booleanhasMoreNodes()

        synchronized (nodes) {
            return i <= nodes.vector.lastElement;
        }
    
public persistence.antlr.collections.ASTnextNode()

        synchronized (nodes) {
            if (i <= nodes.vector.lastElement) {
                return (AST)nodes.vector.data[i++];
            }
            throw new NoSuchElementException("ASTEnumerator");
        }