jd.xml.xpath.model.walk
Class EmptyWalker

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

public class EmptyWalker
extends Object
implements ModelWalker

A EmptyModelWalker represent the null path.


Field Summary
static ModelWalker INSTANCE
           
 
Constructor Summary
EmptyWalker()
           
 
Method Summary
 XPathNode gotoFirstNode(XPathNode startNode)
          Return null.
 XPathNode gotoNextNode(XPathNode lastNode)
          Return null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ModelWalker INSTANCE
Constructor Detail

EmptyWalker

public EmptyWalker()
Method Detail

gotoFirstNode

public XPathNode gotoFirstNode(XPathNode startNode)
Return null.

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 lastNode)
Return null.

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