net.sf.saxon.evpull
public class Decomposer extends Object implements EventIterator
The resulting sequence is decomposed, but not flat (it will contain nested EventIterators). To flatten it, use flatten
Constructor Summary | |
---|---|
Decomposer(EventIterator base, PipelineConfiguration pipe)
Create a Decomposer, which turns an event sequence into fully decomposed form | |
Decomposer(NodeInfo node, PipelineConfiguration pipe)
Create a Decomposer which returns the sequence of events corresponding to
a particular node |
Method Summary | |
---|---|
boolean | isFlatSequence()
Determine whether the EventIterator returns a flat sequence of events, or whether it can return
nested event iterators
|
PullEvent | next()
Get the next event in the sequence
|
Parameters: base the base sequence, which may be fully composed, fully decomposed, or anything in between pipe the Saxon pipeline configuration
Parameters: node the node to be decomposed pipe the Saxon pipeline configuration
Returns: true if the next() method is guaranteed never to return an EventIterator
Returns: the next event, or null when the sequence is exhausted. Note that since an EventIterator is itself a PullEvent, this method may return a nested iterator.
Throws: net.sf.saxon.trans.XPathException if a dynamic evaluation error occurs