jd.xml.xpath.model.walk
Class FollowingWalker

java.lang.Object
  extended byjd.xml.xpath.model.walk.FollowingWalker
All Implemented Interfaces:
ModelWalker

public class FollowingWalker
extends Object
implements ModelWalker

A ModelWalker for the following nodes in document order.


Field Summary
static FollowingWalker INSTANCE
           
 
Method Summary
 XPathNode gotoFirstNode(XPathNode node)
          Return the first node of the path defined by the startNode
 XPathNode gotoNextNode(XPathNode last)
          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
 

Field Detail

INSTANCE

public static final FollowingWalker INSTANCE
Method Detail

gotoFirstNode

public XPathNode gotoFirstNode(XPathNode node)
Description copied from interface: ModelWalker
Return the first node of the path defined by the startNode

Specified by:
gotoFirstNode in interface ModelWalker
Returns:
the first node of the path represented by this ModelWalker.- If null the path is empty.

gotoNextNode

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

Specified by:
gotoNextNode in interface ModelWalker
Parameters:
last - 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.