public interface GroundedIterator extends SequenceIterator
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 |
getResidue()
Return a GroundedValue containing all the remaining items in the sequence returned by this
SequenceIterator, starting at the current position.
|
GroundedValue |
materialize()
Return a GroundedValue containing all the items in the sequence returned by this
SequenceIterator.
|
close, getProperties, next
GroundedValue materialize() throws XPathException
XPathException
- in the cases of subclasses (such as the iterator over a MemoClosure)
which cause evaluation of expressions while materializing the value.GroundedValue 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-2018 Saxonica Limited. All rights reserved.