org.jaxen.util
Class DescendantAxisIterator
java.lang.Objectorg.jaxen.util.DescendantAxisIterator
- Iterator
public class DescendantAxisIterator
extends java.lang.Object
implements Iterator
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."
boolean | hasNext()- Returns true if there are any descendants remaining; false otherwise.
|
Object | next()- Returns the next descendant node.
|
void | remove()- This operation is not supported.
|
children
private Iterator children
stack
private ArrayList stack
DescendantAxisIterator
public DescendantAxisIterator(Object contextNode,
Navigator navigator)
throws UnsupportedAxisException Create a new descendant axis iterator.
contextNode - the node to start fromnavigator - the object model specific navigator
DescendantAxisIterator
public DescendantAxisIterator(Navigator navigator,
Iterator iterator)
hasNext
public boolean hasNext()
Returns true if there are any descendants remaining; false otherwise.
- true if any descendants remain; false otherwise
java.util.Iterator.hasNext()
next
public Object next()
Returns the next descendant node.
java.util.Iterator.next()
remove
public void remove()
This operation is not supported.