net.sf.saxon.om
Class ReverseNodeArrayIterator
- AxisIterator, LastPositionFinder, LookaheadIterator, ReversibleIterator, SequenceIterator, UnfailingIterator
public class ReverseNodeArrayIterator
Iterator over an array of nodes in reverse order
ReverseNodeArrayIterator
public ReverseNodeArrayIterator(Item[] items,
int start,
int end)
Create a reverse iterator over a slice of an array
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.
getStringValue
public CharSequence getStringValue()
Return the string value of the current node.
- getStringValue in interface AxisIterator
- the string value, as an instance of CharSequence.
iterateAxis
public AxisIterator iterateAxis(byte axis,
NodeTest test)
Return an iterator over an axis, starting at the current node.
- 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.
moveNext
public boolean moveNext()
Move to the next node, without returning it. Returns true if there is
a next node, false if the end of the sequence has been reached. After
calling this method, the current node may be retrieved using the
current() function.
- moveNext in interface AxisIterator