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.
|Modifier and Type||Method and Description|
Return a GroundedValue containing all the remaining items in the sequence returned by this SequenceIterator, starting at the current position.
Return a GroundedValue containing all the items in the sequence returned by this SequenceIterator.
GroundedValue<T> materialize() throws XPathException
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.