net.sf.saxon.om
public class SingleNodeIterator extends Object implements AxisIterator, UnfailingIterator, ReversibleIterator, LastPositionFinder, GroundedIterator, LookaheadIterator
Method Summary | |
---|---|
Value | atomize()
Return the atomized value of the current node.
|
void | close() |
Item | current() |
SequenceIterator | getAnother() |
int | getLastPosition() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
SequenceIterator | getReverseIterator() |
CharSequence | getStringValue()
Return the string value of the current node.
|
Item | getValue() |
boolean | hasNext()
Determine whether there are more items to come. |
AxisIterator | iterateAxis(byte axis, NodeTest test)
Return an iterator over an axis, starting at the current node.
|
static AxisIterator | makeIterator(NodeInfo item)
Factory method. |
GroundedValue | materialize()
Return a Value containing all the items in the sequence returned by this
SequenceIterator
|
boolean | moveNext()
Move to the next node, without returning it. |
Item | next() |
int | position()
Return the current position in the sequence. |
Returns: the atomized value.
Throws: NullPointerException if there is no current node
Returns: the properties of this iterator. This will be some combination of properties such as SingleNodeIterator, SingleNodeIterator, and SingleNodeIterator. It is always acceptable to return the value zero, indicating that there are no known special properties. It is acceptable for the properties of the iterator to change depending on its state.
Returns: the string value, as an instance of CharSequence.
Throws: NullPointerException if there is no current node
Returns: true if there are more items
Parameters: axis the axis to iterate over, using a constant such as CHILD test a predicate to apply to the nodes before returning them.
Parameters: item the item to iterate over
Returns: a SingletonIterator over the supplied item, or an EmptyIterator if the supplied item is null.
Returns: the corresponding Value. If the value is a closure or a function call package, it will be evaluated and expanded.
Returns: 0 before the first call on next(); 1 before the second call on next(); -1 after the second call on next().