de.pdark.decentxml
Class TreeIterator

java.lang.Object
  extended by de.pdark.decentxml.TreeIterator
All Implemented Interfaces:
java.util.Iterator<Node>

public class TreeIterator
extends java.lang.Object
implements java.util.Iterator<Node>


Constructor Summary
TreeIterator(NodeWithChildren start)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface java.util.Iterator<Node>

next

public Node next()
Specified by:
next in interface java.util.Iterator<Node>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Node>


Copyright © 2008-2011. All Rights Reserved.