public interface GroundedIterator<T extends Item<?>> extends SequenceIterator<T>
We stretch the concept to consider an iterator over a MemoClosure as a grounded iterator, on the basis that the in-memory sequence might exist already or might be created as a side-effect of navigating the iterator. This is why materializing the iterator can raise an exception.
ATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Modifier and Type | Method and Description |
---|---|
GroundedValue<T> |
getResidue()
Return a GroundedValue containing all the remaining items in the sequence returned by this
SequenceIterator, starting at the current position.
|
GroundedValue<T> |
materialize()
Return a GroundedValue containing all the items in the sequence returned by this
SequenceIterator.
|
close, forEachOrFail, getProperties, next
GroundedValue<T> materialize() throws XPathException
materialize
in interface SequenceIterator<T extends Item<?>>
XPathException
- in the cases of subclasses (such as the iterator over a MemoClosure)
which cause evaluation of expressions while materializing the value.GroundedValue<T> getResidue() throws XPathException
XPathException
- in the cases of subclasses (such as the iterator over a MemoClosure)
which cause evaluation of expressions while materializing the value.Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.