public class ASTIterator
extends java.lang.Object
implements java.util.Iterator
| Constructor and Description |
|---|
ASTIterator(antlr.collections.AST tree)
Constructs an Iterator for depth-first iteration of an AST
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
antlr.collections.AST |
nextNode()
Get the next node to be returned from iteration.
|
void |
remove() |
public ASTIterator(antlr.collections.AST tree)
tree - THe tree whose nodes are to be iteratedpublic void remove()
remove in interface java.util.Iteratorpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic antlr.collections.AST nextNode()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.