public class AncestorOrSelfAxisIterator extends Object implements Iterator
Represents the XPath ancestor-or-self axis.
The "ancestor-or-self axis contains the context node and
the ancestors of the context node; thus, the ancestor axis will
always include the root node."
| Constructor and Description |
|---|
AncestorOrSelfAxisIterator(Object contextNode,
Navigator navigator)
Create a new
ancestor-or-self axis iterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if there are any nodes remaining
on the ancestor-or-self axis; false otherwise.
|
Object |
next()
Returns the next ancestor-or-self node.
|
void |
remove()
This operation is not supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic boolean hasNext()
hasNext in interface IteratorIterator.hasNext()public Object next()
next in interface IteratorNoSuchElementException - if no ancestors remainIterator.next()public void remove()
remove in interface IteratorUnsupportedOperationException - alwaysCopyright © 2001–2016 Codehaus. All rights reserved.