public class TinyTreeEventIterator extends Object implements EventIterator, LocationProvider
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 |
|---|---|
int |
getColumnNumber(long locationId)
Get location information: the column number of the current start element event
|
int |
getLineNumber(long locationId)
Get location information: the line number of the current start element event
|
String |
getSystemId(long locationId)
Get location information: the system Id of the current start element event
|
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 EventIteratorXPathException - if a dynamic evaluation error occurspublic boolean isFlatSequence()
isFlatSequence in interface EventIteratorpublic String getSystemId(long locationId)
getSystemId in interface LocationProviderlocationId - in this case, the node number in the tiny treepublic int getLineNumber(long locationId)
getLineNumber in interface LocationProviderlocationId - in this case, the node number in the tiny treepublic int getColumnNumber(long locationId)
getColumnNumber in interface LocationProviderlocationId - in this case, the node number in the tiny treeCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.