public class NodeArrayIterator extends ArrayIterator implements AxisIterator
ArrayIterator, except that the iterator is an AxisIteratorend, items, startGROUNDED, LAST_POSITION_FINDER, LOOKAHEAD| Constructor and Description |
|---|
NodeArrayIterator(NodeInfo[] nodes) |
NodeArrayIterator(NodeInfo[] nodes,
int start,
int end) |
| Modifier and Type | Method and Description |
|---|---|
Value |
atomize()
Return the atomized value of the current node.
|
SequenceIterator |
getAnother()
Get another iterator over the same items
|
SequenceIterator |
getReverseIterator()
Get an iterator that processes the same items in reverse order
|
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, getArray, getEndPosition, getLastPosition, getProperties, getStartPosition, hasNext, makeSliceIterator, materialize, next, positionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrent, next, positionclose, getPropertiespublic NodeArrayIterator(NodeInfo[] nodes)
public NodeArrayIterator(NodeInfo[] nodes, int start, int end)
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.NullPointerException - if there is no current nodepublic Value atomize() throws XPathException
atomize in interface AxisIteratorNullPointerException - if there is no current nodeXPathExceptionpublic CharSequence getStringValue()
getStringValue in interface AxisIteratorNullPointerException - if there is no current nodepublic SequenceIterator getAnother()
getAnother in interface SequenceIteratorgetAnother in interface UnfailingIteratorgetAnother in class ArrayIteratorpublic SequenceIterator getReverseIterator()
getReverseIterator in interface ReversibleIteratorgetReverseIterator in class ArrayIterator