Class DTMDefaultBaseIterators.AncestorIterator

    • Field Detail

      • m_ancestors

        final java.util.ArrayList<java.lang.Integer> m_ancestors
      • m_ancestorsPos

        int m_ancestorsPos
    • Constructor Detail

      • AncestorIterator

        public AncestorIterator()
    • Method Detail

      • cloneIterator

        public DTMAxisIterator cloneIterator()
        Returns a deep copy of this iterator. Cloned iterators may not be restartable. The iterator being cloned may or may not become non-restartable as a side effect of this operation.
        Specified by:
        cloneIterator in interface DTMAxisIterator
        Overrides:
        cloneIterator in class DTMAxisIteratorBase
        Returns:
        a deep copy of this iterator.
      • setStartNode

        public void setStartNode​(int node)
        Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
        Parameters:
        node - Sets the root of the iteration.
      • next

        public int next()
        Get the next node in the iteration.
        Returns:
        The next node handle in the iteration, or END.