Package org.jaxen.util
Class AncestorOrSelfAxisIterator
java.lang.Object
org.jaxen.util.AncestorOrSelfAxisIterator
- All Implemented Interfaces:
Iterator
- Direct Known Subclasses:
AncestorAxisIterator
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."
- Version:
- 1.2b12
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAncestorOrSelfAxisIterator
(Object contextNode, Navigator navigator) Create a newancestor-or-self
axis iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
contextNode
-
-
Constructor Details
-
Method Details
-
hasNext
public boolean hasNext()Returns true if there are any nodes remaining on the ancestor-or-self axis; false otherwise. -
next
Returns the next ancestor-or-self node.- Specified by:
next
in interfaceIterator
- Returns:
- the next ancestor-or-self node
- Throws:
NoSuchElementException
- if no ancestors remain- See Also:
-
remove
public void remove()This operation is not supported.- Specified by:
remove
in interfaceIterator
- Throws:
UnsupportedOperationException
- always
-