com.caucho.xpath.pattern
Class FilterIterator
java.lang.Object
com.caucho.xpath.pattern.NodeIterator
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.
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 |
FilterIterator
public FilterIterator(NodeIterator parentIter,
Expr expr,
ExprEnvironment env,
org.w3c.dom.Node context)
throws XPathException
- Creates the new AxisIterator.
- Parameters:
parentIter
- the parent iteratorexpr
- the filter expressionenv
- the xpath environmentcontext
- the context node
- Throws:
XPathException
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