Modifier and Type | Field and Description |
---|---|
private int[] |
cursorStack |
private java.lang.String |
path |
private java.util.List<NodeWithChildren> |
stack |
Constructor and Description |
---|
TreeIterator(NodeWithChildren start) |
Modifier and Type | Method and Description |
---|---|
NodeWithChildren |
currentNode() |
protected int |
getCursor() |
java.lang.String |
getPath() |
boolean |
hasNext() |
protected void |
incCursor() |
Node |
next() |
protected NodeWithChildren |
pop() |
protected void |
push(NodeWithChildren node) |
void |
remove() |
protected void |
setCursor(int i) |
private java.lang.String path
private java.util.List<NodeWithChildren> stack
private int[] cursorStack
public TreeIterator(NodeWithChildren start)
public java.lang.String getPath()
protected void push(NodeWithChildren node)
protected NodeWithChildren pop()
public NodeWithChildren currentNode()
protected void setCursor(int i)
protected void incCursor()
protected int getCursor()
public boolean hasNext()
hasNext
in interface java.util.Iterator<Node>
public void remove()
remove
in interface java.util.Iterator<Node>