Package net.sf.saxon.tree.iter
Class SingleAtomicIterator<T extends AtomicValue>
java.lang.Object
net.sf.saxon.tree.iter.SingletonIterator<T>
net.sf.saxon.tree.iter.SingleAtomicIterator<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,LastPositionFinder,SequenceIterator,AtomicIterator<T>,GroundedIterator,LookaheadIterator,ReversibleIterator,UnfailingIterator
public class SingleAtomicIterator<T extends AtomicValue>
extends SingletonIterator<T>
implements AtomicIterator<T>, ReversibleIterator, LastPositionFinder, GroundedIterator, LookaheadIterator
SingletonIterator: an iterator over a sequence of zero or one values
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.sf.saxon.om.SequenceIterator
SequenceIterator.Property -
Field Summary
Fields inherited from class net.sf.saxon.tree.iter.SingletonIterator
gone -
Constructor Summary
ConstructorsConstructorDescriptionSingleAtomicIterator(T value) Private constructor: external classes should use the factory method -
Method Summary
Modifier and TypeMethodDescriptionGet a new SequenceIterator that returns the same items in reverse order.Methods inherited from class net.sf.saxon.tree.iter.SingletonIterator
getLength, getProperties, getResidue, getValue, hasNext, makeIterator, materialize, next, rawIteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.tree.iter.AtomicIterator
nextMethods inherited from interface net.sf.saxon.tree.iter.GroundedIterator
getResidue, materializeMethods inherited from interface net.sf.saxon.expr.LastPositionFinder
getLengthMethods inherited from interface net.sf.saxon.tree.iter.LookaheadIterator
hasNextMethods inherited from interface net.sf.saxon.om.SequenceIterator
close, forEachOrFail, getPropertiesMethods inherited from interface net.sf.saxon.tree.iter.UnfailingIterator
forEach, toList
-
Constructor Details
-
SingleAtomicIterator
Private constructor: external classes should use the factory method- Parameters:
value- the item to iterate over
-
-
Method Details
-
getReverseIterator
Description copied from interface:ReversibleIteratorGet a new SequenceIterator that returns the same items in reverse order. If this SequenceIterator is an AxisIterator, then the returned SequenceIterator must also be an AxisIterator.- Specified by:
getReverseIteratorin interfaceReversibleIterator- Overrides:
getReverseIteratorin classSingletonIterator<T extends AtomicValue>- Returns:
- an iterator over the items in reverse order
-