public class FollowingAxisIterator extends Object implements Iterator
following
axis.
The "following
axis contains all nodes in the same document as the context
node that are after the context node in document order, excluding any descendants
and excluding attribute nodes and namespace nodes."Constructor and Description |
---|
FollowingAxisIterator(Object contextNode,
Navigator navigator)
Create a new
following axis iterator. |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if there are any following nodes remaining;
false otherwise.
|
Object |
next()
Returns the next following node.
|
void |
remove()
This operation is not supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public FollowingAxisIterator(Object contextNode, Navigator navigator) throws UnsupportedAxisException
following
axis iterator.contextNode
- the node to start fromnavigator
- the object model specific navigatorUnsupportedAxisException
- if the navigator does not support the following axispublic boolean hasNext()
hasNext
in interface Iterator
Iterator.hasNext()
public Object next() throws NoSuchElementException
next
in interface Iterator
NoSuchElementException
- if no following nodes remainIterator.next()
public void remove() throws UnsupportedOperationException
remove
in interface Iterator
UnsupportedOperationException
- alwaysCopyright 2001–2022 The Jaxen Project. All rights reserved.