Package org.jaxen.util
Class DescendantAxisIterator
java.lang.Object
org.jaxen.util.DescendantAxisIterator
- All Implemented Interfaces:
Iterator
- Direct Known Subclasses:
DescendantOrSelfAxisIterator
Represents the XPath
descendant
axis.
The "descendant
axis contains the descendants of the context node;
a descendant is a child or a child of a child and so on; thus
the descendant axis never contains attribute or namespace nodes."- Version:
- 1.2b12
-
Constructor Summary
ConstructorsConstructorDescriptionDescendantAxisIterator
(Object contextNode, Navigator navigator) Create a newdescendant
axis iterator.DescendantAxisIterator
(Navigator navigator, Iterator 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
-
Constructor Details
-
Method Details
-
hasNext
public boolean hasNext()Returns true if there are any descendants remaining; false otherwise. -
next
Returns the next descendant node.- Specified by:
next
in interfaceIterator
- Returns:
- the next descendant node
- Throws:
NoSuchElementException
- if no descendants remain- See Also:
-
remove
public void remove()This operation is not supported.- Specified by:
remove
in interfaceIterator
- Throws:
UnsupportedOperationException
- always
-