Package org.jaxen.util
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:
- 1.2b12
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrecedingSiblingAxisIterator
(Object contextNode, Navigator navigator) Create a newpreceding-sibling
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
-
siblingIter
-
nextObj
-
-
Constructor Details
-
Method Details
-
init
- Throws:
UnsupportedAxisException
-
hasNext
public boolean hasNext()Returns true if there are any preceding siblings remaining; false otherwise. -
next
Returns the next preceding sibling.- Specified by:
next
in interfaceIterator
- Returns:
- the next preceding sibling
- Throws:
NoSuchElementException
- if no preceding siblings remain- See Also:
-
remove
This operation is not supported.- Specified by:
remove
in interfaceIterator
- Throws:
UnsupportedOperationException
-