Methods Summary |
---|
private void | down()
while ( next != null && next.getFirstChild() != null ) {
push( next );
next = next.getFirstChild();
}
|
public boolean | hasNext()
return next != null;
|
public java.lang.Object | next()
return nextNode();
|
public antlr.collections.AST | nextNode()
current = next;
if ( next != null ) {
AST nextSibling = next.getNextSibling();
if ( nextSibling == null ) {
next = pop();
}
else {
next = nextSibling;
down();
}
}
return current;
|
private antlr.collections.AST | pop()
if ( parents.size() == 0 ) {
return null;
}
else {
return ( AST ) parents.removeFirst();
}
|
private void | push(antlr.collections.AST parent)
parents.addFirst( parent );
|
public void | remove()
throw new UnsupportedOperationException( "remove() is not supported" );
|