AtomizableIterator
, AxisIterator
, SequenceIterator
final class DescendantEnumeration extends AxisIteratorImpl
current, position
ATOMIZABLE, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor | Description |
---|---|
DescendantEnumeration(TinyTree doc,
TinyNodeImpl node,
NodeTest nodeTest,
boolean includeSelf) |
Create an iterator over the descendant axis
|
Modifier and Type | Method | Description |
---|---|---|
SequenceIterator |
getAnother() |
Get another enumeration of the same nodes
|
Item |
next() |
Get the next item in the sequence.
|
current, getProperties, isAtomizing, position, setIsAtomizing
DescendantEnumeration(TinyTree doc, TinyNodeImpl node, NodeTest nodeTest, boolean includeSelf)
doc
- the containing TinyTreenode
- the node whose descendants are requirednodeTest
- test to be satisfied by each returned nodeincludeSelf
- true if the start node is to be includedpublic Item next()
AxisIterator
public SequenceIterator getAnother()