org.jaxen.util
Class AncestorAxisIterator

java.lang.Object
  extended byorg.jaxen.util.AncestorOrSelfAxisIterator
      extended byorg.jaxen.util.AncestorAxisIterator
All Implemented Interfaces:
java.util.Iterator

public class AncestorAxisIterator
extends AncestorOrSelfAxisIterator

Represents the XPath ancestor axis. The "ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; thus, the ancestor axis will always include the root node, unless the context node is the root node."

Version:
1.2b12

Field Summary
 
Fields inherited from class org.jaxen.util.AncestorOrSelfAxisIterator
 
Constructor Summary
AncestorAxisIterator(java.lang.Object contextNode, Navigator navigator)
          Create a new ancestor axis iterator.
 
Methods inherited from class org.jaxen.util.AncestorOrSelfAxisIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AncestorAxisIterator

public AncestorAxisIterator(java.lang.Object contextNode,
                            Navigator navigator)
Create a new ancestor axis iterator.

Parameters:
contextNode - the node to start from
navigator - the object model specific navigator