public class NodeListIterator extends ListIterator implements AxisIterator
current, index, length, list
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
NodeListIterator(List list)
Create a NodeListIterator.
|
Modifier and Type | Method and Description |
---|---|
Value |
atomize()
Return the atomized value of the current node.
|
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, position
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
current, getAnother, next, position
close, getProperties
public NodeListIterator(List list)
list
- the list, all of whose members must be instances of NodeInfo (this is not checked)public boolean moveNext()
moveNext
in interface AxisIterator
public AxisIterator iterateAxis(byte axis, NodeTest test)
iterateAxis
in interface AxisIterator
axis
- the axis to iterate over, using a constant such as
Axis.CHILD
test
- a predicate to apply to the nodes before returning them.NullPointerException
- if there is no current nodepublic Value atomize() throws XPathException
atomize
in interface AxisIterator
NullPointerException
- if there is no current nodeXPathException
public CharSequence getStringValue()
getStringValue
in interface AxisIterator
NullPointerException
- if there is no current node