jd.xml.xpath.model.walk
Class ListWalker

java.lang.Object
  extended byjd.xml.xpath.model.walk.ListWalker
All Implemented Interfaces:
ModelWalker
Direct Known Subclasses:
AttributeListWalker, NamespaceListWalker

public abstract class ListWalker
extends Object
implements ModelWalker

An walker for an array of nodes.


Constructor Summary
ListWalker()
           
 
Method Summary
protected  XPathNode gotoFirstNode(XPathNode[] list)
           
 XPathNode gotoNextNode(XPathNode node)
          Return the next node of the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jd.xml.xpath.model.walk.ModelWalker
gotoFirstNode
 

Constructor Detail

ListWalker

public ListWalker()
Method Detail

gotoFirstNode

protected XPathNode gotoFirstNode(XPathNode[] list)

gotoNextNode

public XPathNode gotoNextNode(XPathNode node)
Description copied from interface: ModelWalker
Return the next node of the path.

Specified by:
gotoNextNode in interface ModelWalker
Parameters:
node - a XPathNode obtained from the last call to gotoFirstNode or gotoNextNode. If the node is another node the behaviour is not determined.
Returns:
the next node of the path represented by this ModelWalker.- If null then the path ended.