com.caucho.xpath.pattern
Class FilterIterator

java.lang.Object
  extended by com.caucho.xpath.pattern.NodeIterator
      extended by com.caucho.xpath.pattern.FilterIterator
All Implemented Interfaces:
ExprEnvironment, java.util.Iterator<org.w3c.dom.Node>

public class FilterIterator
extends NodeIterator

Uses the axis to select new nodes.


Field Summary
 
Fields inherited from class com.caucho.xpath.pattern.NodeIterator
_contextNode, _env, _position, _size, log
 
Constructor Summary
FilterIterator(NodeIterator parentIter, Expr expr, ExprEnvironment env, org.w3c.dom.Node context)
          Creates the new AxisIterator.
 
Method Summary
 java.lang.Object clone()
          clones the iterator
 boolean hasNext()
          True if there's more data.
 org.w3c.dom.Node nextNode()
          Returns the next selected node.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.xpath.pattern.NodeIterator
copy, getContextNode, getContextPosition, getContextSize, getCurrentNode, getFunction, getOwnerDocument, getPositionIndex, getStylesheetEnv, getVar, next, nextSelectedNode, remove, setContextNode, setMorePositions, stringValue, systemProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterIterator

public FilterIterator(NodeIterator parentIter,
                      Expr expr,
                      ExprEnvironment env,
                      org.w3c.dom.Node context)
               throws XPathException
Creates the new AxisIterator.

Parameters:
parentIter - the parent iterator
expr - the filter expression
env - the xpath environment
context - the context node
Throws:
XPathException
Method Detail

hasNext

public boolean hasNext()
True if there's more data.

Specified by:
hasNext in interface java.util.Iterator<org.w3c.dom.Node>
Specified by:
hasNext in class NodeIterator

nextNode

public org.w3c.dom.Node nextNode()
                          throws XPathException
Returns the next selected node.

Specified by:
nextNode in class NodeIterator
Throws:
XPathException

clone

public java.lang.Object clone()
Description copied from class: NodeIterator
clones the iterator

Specified by:
clone in class NodeIterator

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object