Package de.pdark.decentxml
Class TreeIterator
- java.lang.Object
-
- de.pdark.decentxml.TreeIterator
-
-
Constructor Summary
Constructors Constructor Description TreeIterator(NodeWithChildren start)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeWithChildrencurrentNode()protected intgetCursor()java.lang.StringgetPath()booleanhasNext()protected voidincCursor()Nodenext()protected NodeWithChildrenpop()protected voidpush(NodeWithChildren node)voidremove()protected voidsetCursor(int i)
-
-
-
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:
hasNextin interfacejava.util.Iterator<Node>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<Node>
-
-