Package net.sf.saxon.tree.iter
This package defines implementations and subinterfaces of the interface SequenceIterator, which is used to iterate over an XDM sequence.
The subinterfaces mostly represent iterators with additional capability: for example a LastPositionFinder can determine the number of items in the sequence without reading to the end; a GroundedIterator can deliver the original sequence as a list in memory; a LookaheadIterator is capable of one-item look-ahead. Note that just because a class implements such an interface does not mean it necessarily has this capability; it is necessary to check the properties of the specific iterator before assuming this.
-
Interface Summary Interface Description AtomicIterator A SequenceIterator is used to iterate over a sequence.AxisIterator A SequenceIterator is used to iterate over a sequence of items.GroundedIterator This interface is an extension to the SequenceIterator interface; it represents a SequenceIterator that is based on an in-memory representation of a sequence, and that is therefore capable of returning a Sequence containing all the items in the sequence.LookaheadIterator A SequenceIterator is used to iterate over a sequence.NodeWrappingFunction<B,T extends NodeInfo> Interface to a function that wraps nodes from an external object model in a Saxon NodeInfo representationReversibleIterator A ReversibleIterator is an interface implemented by any SequenceIterator that is able to deliver items in reverse order (or to supply another iterator that can do so). -
Class Summary Class Description AdjacentTextNodeMergingIterator AdjacentTextNodeMergingIterator is an iterator that eliminates zero-length text nodes and merges adjacent text nodes from the underlying iteratorArrayIterator ArrayIterator is used to enumerate items held in a Java array.ArrayIterator.Of<T extends Item> Parameterised subclass to accept items of a particular item typeArrayIterator.OfNodes<N extends NodeInfo> ArrayIterator.OfNodes is a subclass of ArrayIterator where the array always contains Nodes; it therefore implements the AxisIterator interface.AtomizingIterator AtomizingIterator returns the atomization of an underlying sequence supplied as an iterator.ConcatenatingAxisIterator An iterator over nodes, that concatenates the nodes returned by two supplied iterators.EmptyIterator EmptyIterator: an iterator over an empty sequence.HomogeneityCheckerIterator An iterator that returns the same items as its base iterator, checking to see that they are either all nodes, or all non-nodes; if they are all nodes, it delivers them in document order.IncrementalIterator This class implements an AxisIterator by providing a start item, and a function that selects the next item as a function of the previous item.ListIterator Class ListIterator, iterates over a sequence of items held in a Java List.ListIterator.Of<T extends Item> ListIterator.OfAtomic<A extends AtomicValue> ListIterator.OfAtomic is a subclass of ListIterator where the list always contains atomic values; it therefore implements the AtomicIterator interface.LookaheadIteratorImpl This class wraps any sequence iterator, turning it into a lookahead iterator, by looking ahead one itemManualIterator ManualIterator: a pseudo-iterator used while streaming.NodeListIterator Class ListIterator, iterates over a sequence of items held in a Java List.NodeWrappingAxisIterator<B> An AxisIterator that wraps a Java Iterator.PrependAxisIterator An iterator over nodes, that prepends a given node to the nodes returned by another iterator.PrependSequenceIterator An iterator over nodes, that prepends a given node to the nodes returned by another iterator.RangeIterator This abstract class represents an iteration over the results of a range expression (A by B to C).ReportingSingletonIterator This is a subclass ofSingletonIterator
that reports to aLearningEvaluator
when the single target item is actually read.SequenceIteratorOverJavaIterator<J> SingleAtomicIterator SingletonIterator: an iterator over a sequence of exactly one atomic valueSingleNodeIterator SingleNodeIterator: an iterator over a sequence of zero or one nodesSingletonIterator SingletonIterator: an iterator over a sequence exactly one valueTextLinesIterator An iterator that iterates over a file line by line, returning each line as aStringValue
TwoItemIterator An iterator over a pair of objects (typically sub-expressions of an expression)UnparsedTextIterator Class UnparsedTextIterator, iterates over a file line by lineUntypedAtomizingIterator AtomizingIterator returns the atomization of an underlying sequence supplied as an iterator.