net.sf.saxon.tinytree
final class SiblingEnumeration extends AxisIteratorImpl implements LookaheadIterator
Constructor Summary | |
---|---|
SiblingEnumeration(TinyTree tree, TinyNodeImpl node, NodeTest nodeTest, boolean getChildren)
Return an enumeration over children or siblings of the context node |
Method Summary | |
---|---|
Value | atomize()
Return the atomized value of the current node. |
Item | current()
Get the current node in the sequence. |
SequenceIterator | getAnother()
Get another enumeration of the same nodes |
int | getProperties() |
CharSequence | getStringValue()
Return the string value of the current node.
|
boolean | hasNext()
Test whether there are any more nodes to come. |
boolean | moveNext() |
Item | next()
Return the next node in the sequence |
Parameters: tree The TinyTree containing the context node node The context node, the start point for the iteration nodeTest Test that the selected nodes must satisfy, or null indicating that all nodes are selected getChildren True if children of the context node are to be returned, false if following siblings are required
Returns: the atomized value.
Throws: NullPointerException if there is no current node
Returns: the node returned by the most recent call on next(), or the one on which we have positioned using moveNext().
Returns: the string value, as an instance of CharSequence.
Throws: NullPointerException if there is no current node
Returns: true if there are more items in the sequence
Returns: the next node, or null if the end of the sequence is reached