Package de.pdark.decentxml
Class TreeIterator
- java.lang.Object
-
- de.pdark.decentxml.TreeIterator
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
cursorStack
private java.lang.String
path
private java.util.List<NodeWithChildren>
stack
-
Constructor Summary
Constructors Constructor Description TreeIterator(NodeWithChildren start)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
path
private java.lang.String path
-
stack
private java.util.List<NodeWithChildren> stack
-
cursorStack
private int[] cursorStack
-
-
Constructor Detail
-
TreeIterator
public TreeIterator(NodeWithChildren start)
-
-
Method Detail
-
getPath
public java.lang.String getPath()
-
push
protected void push(NodeWithChildren node)
-
pop
protected NodeWithChildren pop()
-
currentNode
public NodeWithChildren currentNode()
-
setCursor
protected void setCursor(int i)
-
incCursor
protected void incCursor()
-
getCursor
protected int getCursor()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<Node>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<Node>
-
-