Class PrecedingSiblingAxisIterator
java.lang.Object
org.jaxen.util.PrecedingSiblingAxisIterator
- All Implemented Interfaces:
Iterator
Represents the XPath
preceding-sibling axis.
The "preceding-sibling axis contains all the
preceding siblings of the context node; if the context node is an
attribute node or namespace node, the preceding-sibling
axis is empty."- Version:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionPrecedingSiblingAxisIterator(Object contextNode, Navigator navigator) Create a newpreceding-siblingaxis iterator. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
Method Details
-
hasNext
-
next
Returns the next preceding sibling.- Specified by:
nextin interfaceIterator- Returns:
- the next preceding sibling
- Throws:
NoSuchElementException- if no preceding siblings remain- See Also:
-
remove
This operation is not supported.- Specified by:
removein interfaceIterator- Throws:
UnsupportedOperationException- always
-