Package net.sf.saxon.evpull
Class BlockEventIterator
java.lang.Object
net.sf.saxon.evpull.BlockEventIterator
- All Implemented Interfaces:
EventIterator,PullEvent
Iterate over the instructions in a Block, concatenating the result of each instruction
into a single combined sequence.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockEventIterator(Expression[] children, XPathContext context) Create an EventIterator over the results of evaluating a Block -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether the EventIterator returns a flat sequence of events, or whether it can return nested event iteratorsnext()Get the next item in the sequence.
-
Constructor Details
-
BlockEventIterator
Create an EventIterator over the results of evaluating a Block- Parameters:
children- the sequence of instructions comprising the Blockcontext- the XPath dynamic context
-
-
Method Details
-
next
Get the next item in the sequence.- Specified by:
nextin interfaceEventIterator- Returns:
- the next item, or null if there are no more items.
- Throws:
XPathException- if an error occurs retrieving the next item
-
isFlatSequence
public boolean isFlatSequence()Determine whether the EventIterator returns a flat sequence of events, or whether it can return nested event iterators- Specified by:
isFlatSequencein interfaceEventIterator- Returns:
- true if the next() method is guaranteed never to return an EventIterator
-