Class AncestorOrSelfAxisIterator

  • All Implemented Interfaces:
    Iterator
    Direct Known Subclasses:
    AncestorAxisIterator

    public class AncestorOrSelfAxisIterator
    extends Object
    implements Iterator

    Represents the XPath ancestor-or-self axis. The "ancestor-or-self axis contains the context node and the ancestors of the context node; thus, the ancestor axis will always include the root node."

    Version:
    1.2b12
    • Constructor Detail

      • AncestorOrSelfAxisIterator

        public AncestorOrSelfAxisIterator​(Object contextNode,
                                          Navigator navigator)
        Create a new ancestor-or-self axis iterator.
        Parameters:
        contextNode - the node to start from
        navigator - the object model specific navigator