org.hibernate.hql.ast.util
Class ASTParentsFirstIterator

java.lang.Object
  extended by org.hibernate.hql.ast.util.ASTParentsFirstIterator
All Implemented Interfaces:
java.util.Iterator

public class ASTParentsFirstIterator
extends java.lang.Object
implements java.util.Iterator

Depth first iteration of an ANTLR AST.

Author:
josh

Constructor Summary
ASTParentsFirstIterator(antlr.collections.AST tree)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 antlr.collections.AST nextNode()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTParentsFirstIterator

public ASTParentsFirstIterator(antlr.collections.AST tree)
Method Detail

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

nextNode

public antlr.collections.AST nextNode()


Copyright © 2008 Hibernate.org. All Rights Reserved.