public class NodeListIterator extends ListIterator implements AxisIterator
current, index, length, listGROUNDED, LAST_POSITION_FINDER, LOOKAHEAD| Constructor and Description |
|---|
NodeListIterator(java.util.List list)
Create a NodeListIterator.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
atomize()
Return the atomized value of the current node.
|
java.lang.CharSequence |
getStringValue()
Return the string value of the current node.
|
AxisIterator |
iterateAxis(byte axis,
NodeTest test)
Return an iterator over an axis, starting at the current node.
|
boolean |
moveNext()
Move to the next node, without returning it.
|
close, current, getAnother, getLastPosition, getProperties, hasNext, materialize, next, positionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrent, getAnother, next, positionclose, getPropertiespublic NodeListIterator(java.util.List list)
list - the list, all of whose members must be instances of NodeInfo (this is not checked)public boolean moveNext()
moveNext in interface AxisIteratorpublic AxisIterator iterateAxis(byte axis, NodeTest test)
iterateAxis in interface AxisIteratoraxis - the axis to iterate over, using a constant such as
Axis.CHILDtest - a predicate to apply to the nodes before returning them.java.lang.NullPointerException - if there is no current nodepublic Value atomize() throws XPathException
atomize in interface AxisIteratorjava.lang.NullPointerException - if there is no current nodeXPathExceptionpublic java.lang.CharSequence getStringValue()
getStringValue in interface AxisIteratorjava.lang.NullPointerException - if there is no current node