| java.lang.Object net.sf.saxon.om.SingletonIterator
getLastPosition | public int getLastPosition()(Code) | | |
getProperties | public int getProperties()(Code) | | Get properties of this iterator, as a bit-significant integer.
the properties of this iterator. This will be some combination ofproperties such as GROUNDED, LAST_POSITION_FINDER,and LOOKAHEAD. It is alwaysacceptable 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. |
hasNext | public boolean hasNext()(Code) | | Determine whether there are more items to come. Note that this operation
is stateless and it is not necessary (or usual) to call it before calling
next(). It is used only when there is an explicit need to tell if we
are at the last element.
true if there are more items |
makeIterator | public static AxisIterator makeIterator(Item item)(Code) | | Factory method.
Parameters: item - the item to iterate over a SingletonIterator over the supplied item, or an EmptyIteratorif the supplied item is null. |
materialize | public Value materialize()(Code) | | Return a SequenceExtent containing all the items in the sequence returned by this
SequenceIterator
the corresponding SequenceExtent if it exists, or null if it doesn't; in this casethe caller must construct a new SequenceExtent by calling new SequenceExtent(iter.getAnother()) |
position | public int position()(Code) | | Return the current position in the sequence.
0 before the first call on next(); 1 before the second call on next(); -1 after the secondcall on next(). |
setIsAtomizing | public void setIsAtomizing(boolean atomizing)(Code) | | Indicate that any nodes returned in the sequence will be atomized. This
means that if it wishes to do so, the implementation can return the typed
values of the nodes rather than the nodes themselves. The implementation
is free to ignore this hint.
This implementation attempts atomization of a singleton node if it is untyped.
This avoids adding an iterator to iterate over the value in the common case where
the typed value of the node is a single atomic value.
Parameters: atomizing - true if the caller of this iterator will atomize anynodes that are returned, and is therefore willing to accept the typedvalue of the nodes instead of the nodes themselves. |
|
|