|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.tinytree.TinyTreeEventIterator
public class TinyTreeEventIterator
This implementation of the Saxon event-pull interface starts from a document, element,
text, comment, or processing-instruction node in a TinyTree,
and returns the events corresponding to that node and its descendants (including
their attributes and namespaces). The class performs the same function as
the general-purpose Decomposer class, but is
specialized to exploit the TinyTree data structure: in particular, it never
materializes any Node objects.
| Constructor Summary | |
|---|---|
TinyTreeEventIterator(TinyNodeImpl startNode)
Create a TinyTreeEventIterator to return events associated with a tree or subtree |
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TinyTreeEventIterator(TinyNodeImpl startNode)
startNode - the root of the tree or subtree. Must be a document or element node.
IllegalArgumentException - if the start node is an attribute or namespace node.| Method Detail |
|---|
public PullEvent next()
throws XPathException
next in interface EventIteratorXPathException - if a dynamic evaluation error occurspublic boolean isFlatSequence()
isFlatSequence in interface EventIterator
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||