final class NamedChildIterator extends Object implements AxisIterator, LookaheadIterator<NodeInfo>, AtomizedValueIterator<NodeInfo>
ATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD| Constructor and Description |
|---|
NamedChildIterator(TinyTree tree,
TinyNodeImpl node,
int fingerprint)
Return an enumeration over children or siblings of the context node
|
| Modifier and Type | Method and Description |
|---|---|
int |
getProperties()
Get properties of this iterator, as a bit-significant integer.
|
boolean |
hasNext()
Test whether there are any more nodes to come.
|
NodeInfo |
next()
Return the next node in the sequence
|
AtomicSequence |
nextAtomizedValue()
Deliver the atomic value that is next in the atomized result
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfirstWith, forEach, toGroundedValue, toListclose, forEachOrFail, materializeNamedChildIterator(TinyTree tree, TinyNodeImpl node, int fingerprint)
tree - The TinyTree containing the context nodenode - The context node, the start point for the iterationfingerprint - The fingerprint of the required element childrenpublic NodeInfo next()
next in interface SequenceIterator<NodeInfo>next in interface AxisIteratornext in interface UnfailingIterator<NodeInfo>public AtomicSequence nextAtomizedValue() throws XPathException
nextAtomizedValue in interface AtomizedValueIterator<NodeInfo>XPathException - if a failure occurs reading or atomizing the next valuepublic boolean hasNext()
hasNext in interface LookaheadIterator<NodeInfo>public int getProperties()
SequenceIteratorgetProperties in interface SequenceIterator<NodeInfo>SequenceIterator.GROUNDED, SequenceIterator.LAST_POSITION_FINDER,
and SequenceIterator.LOOKAHEAD. It is always
acceptable to return the value zero, indicating that there are no known special properties.
It is acceptable for the properties of the iterator to change depending on its state.