Class ReverseAxesWalker

    • Method Detail

      • setRoot

        public void setRoot​(int root)
        Set the root node of the TreeWalker. (Not part of the DOM2 TreeWalker interface).
        Overrides:
        setRoot in class AxesWalker
        Parameters:
        root - The context node of this step.
      • detach

        public void detach()
        Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.
        Overrides:
        detach in class AxesWalker
      • isReverseAxes

        public boolean isReverseAxes()
        Tells if this is a reverse axes. Overrides AxesWalker#isReverseAxes.
        Overrides:
        isReverseAxes in class PredicatedNodeTest
        Returns:
        true for this class.
      • getLastPos

        public int getLastPos​(XPathContext xctxt)
        Get the number of nodes in this node list. The function is probably ill named?
        Specified by:
        getLastPos in interface SubContextList
        Overrides:
        getLastPos in class AxesWalker
        Parameters:
        xctxt - The XPath runtime context.
        Returns:
        the number of nodes in this node list.
      • isDocOrdered

        public boolean isDocOrdered()
        Returns true if all the nodes in the iteration well be returned in document order. Warning: This can only be called after setRoot has been called!
        Overrides:
        isDocOrdered in class AxesWalker
        Returns:
        false.