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, rawIterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.saxon.tree.iter.AtomicIterator
next
Methods inherited from interface net.sf.saxon.tree.iter.GroundedIterator
getResidue, materialize
Methods inherited from interface net.sf.saxon.expr.LastPositionFinder
getLength
Methods inherited from interface net.sf.saxon.tree.iter.LookaheadIterator
hasNext
Methods inherited from interface net.sf.saxon.om.SequenceIterator
close, forEachOrFail, getProperties
Methods 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:ReversibleIterator
Get 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:
getReverseIterator
in interfaceReversibleIterator
- Overrides:
getReverseIterator
in classSingletonIterator<T extends AtomicValue>
- Returns:
- an iterator over the items in reverse order
-