Class WalkingIteratorSorted

All Implemented Interfaces:
Serializable, Cloneable, SourceLocator, DTMIterator, PathComponent, SubContextList, ExpressionNode, ExpressionOwner, XPathVisitable

public class WalkingIteratorSorted extends WalkingIterator
This class iterates over set of nodes that needs to be sorted.
See Also:
  • Constructor Details

    • WalkingIteratorSorted

      public WalkingIteratorSorted(PrefixResolver nscontext)
      Create a WalkingIteratorSorted object.
      Parameters:
      nscontext - The namespace context for this iterator, should be OK if null.
  • Method Details

    • isDocOrdered

      public boolean isDocOrdered()
      Returns true if all the nodes in the iteration well be returned in document order.
      Specified by:
      isDocOrdered in interface DTMIterator
      Overrides:
      isDocOrdered in class LocPathIterator
      Returns:
      true as a default.
    • fixupVariables

      public void fixupVariables(Vector vars, int globalsSize)
      This function is used to perform some extra analysis of the iterator.
      Overrides:
      fixupVariables in class WalkingIterator
      Parameters:
      vars - List of QNames that correspond to variables. This list should be searched backwards for the first qualified name that corresponds to the variable reference qname. The position of the QName in the vector from the start of the vector will be its position in the stack frame (but variables above the globalsTop value will need to be offset to the current stack frame).