public class TinyTreeEventIterator extends Object implements EventIterator
Decomposer
class, but is
specialized to exploit the TinyTree data structure: in particular, it never
materializes any Node objects.Constructor and Description |
---|
TinyTreeEventIterator(TinyNodeImpl startNode,
PipelineConfiguration pipe)
Create a TinyTreeEventIterator to return events associated with a tree or subtree
|
Modifier and Type | Method and Description |
---|---|
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
|
public TinyTreeEventIterator(TinyNodeImpl startNode, PipelineConfiguration pipe)
startNode
- the root of the tree or subtree. Must be a document or element node.pipe
- the Saxon pipeline configurationIllegalArgumentException
- if the start node is an attribute or namespace node.public PullEvent next() throws XPathException
next
in interface EventIterator
XPathException
- if a dynamic evaluation error occurspublic boolean isFlatSequence()
isFlatSequence
in interface EventIterator
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.