public abstract class SequenceExtent extends java.lang.Object implements GroundedValue
Modifier and Type | Class and Description |
---|---|
static class |
SequenceExtent.Of<T extends Item> |
Constructor and Description |
---|
SequenceExtent() |
Modifier and Type | Method and Description |
---|---|
static SequenceExtent.Of<Item> |
from(SequenceIterator iter)
Construct a sequence containing all the remaining items in a SequenceIterator.
|
static GroundedValue |
makeResidue(SequenceIterator iter)
Factory method to make a GroundedValue holding the remaining contents of any SequenceIterator,
that is, the contents that have not yet been read
|
static <T extends Item> |
makeSequenceExtent(java.util.List<T> input)
Factory method to make a Value holding the contents of any List of items
|
abstract SequenceIterator |
reverseIterate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asIterable, concatenate, containsNode, effectiveBooleanValue, getLength, getStringValue, getUnicodeStringValue, head, itemAt, iterate, materialize, reduce, subsequence, toShortString
makeRepeatable
public static SequenceExtent.Of<Item> from(SequenceIterator iter)
iter
- The supplied sequence of items. The returned sequence will contain all
items delivered by repeated calls on next() on this iterator, and the
iterator will be consumed by calling the method.UncheckedXPathException
- if reading the items using the
SequenceIterator raises an errorpublic static GroundedValue makeResidue(SequenceIterator iter)
iter
- a Sequence iterator that may or may not be consumed to deliver the items in the sequence.
The iterator need not be positioned at the start.EmptySequence
. If it is of length
one, the result will be an Item
. In all other cases, it will be an instance of
SequenceExtent
.UncheckedXPathException
- if an error occurs processing the values from
the iterator.public static <T extends Item> GroundedValue makeSequenceExtent(java.util.List<T> input)
T
- the type of items in the listinput
- a List containing the items in the sequence. The caller guarantees that
the list will not be subsequently modified.EmptySequence
. If it is of length
one, the result will be an Item
. In all other cases, it will be an instance of
SequenceExtent
.public abstract SequenceIterator reverseIterate()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.