LastPositionFinder
, ReversibleIterator
, AxisIterator
, LookaheadIterator
, SequenceIterator
, UnfailingIterator
public class ReverseNodeArrayIterator extends ReverseArrayIterator implements AxisIterator
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor | Description |
---|---|
ReverseNodeArrayIterator(Item[] items,
int start,
int end) |
Create a reverse iterator over a slice of an array
|
Modifier and Type | Method | 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.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, current, getLastPosition, getProperties, hasNext, next, position
close, getProperties
current, next, position
public ReverseNodeArrayIterator(Item[] items, int start, int end)
items
- The array of itemsstart
- The first item in the array to be be used (this will be the last
one in the resulting iteration). Zero-based.end
- The item after the last one in the array to be used (this will be the
first one to be returned by the iterator). Zero-based.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.java.lang.NullPointerException
- if there is no current nodepublic Value atomize() throws XPathException
atomize
in interface AxisIterator
java.lang.NullPointerException
- if there is no current nodeXPathException
public java.lang.CharSequence getStringValue()
getStringValue
in interface AxisIterator
java.lang.NullPointerException
- if there is no current nodepublic SequenceIterator getAnother()
getAnother
in interface SequenceIterator
getAnother
in interface UnfailingIterator
getAnother
in class ReverseArrayIterator
public SequenceIterator getReverseIterator()
getReverseIterator
in interface ReversibleIterator
getReverseIterator
in class ReverseArrayIterator