Class DescendantIterator

  • All Implemented Interfaces:
    Closeable, AutoCloseable, net.sf.saxon.om.SequenceIterator, net.sf.saxon.tree.iter.AxisIterator

    public class DescendantIterator
    extends Object
    implements net.sf.saxon.tree.iter.AxisIterator
    Recursive-free implementation of the descendant axis iterator.
    • Field Detail

      • queue

        private final Queue<net.sf.saxon.om.NodeInfo> queue
        Queue for sibling nodes.
      • descendantEnum

        private net.sf.saxon.tree.iter.AxisIterator descendantEnum
        Descendant axis iterator.
    • Method Detail

      • next

        public net.sf.saxon.om.NodeInfo next()
        Get the next item in the sequence.
        Specified by:
        next in interface net.sf.saxon.tree.iter.AxisIterator
        Specified by:
        next in interface net.sf.saxon.om.SequenceIterator
        Returns:
        the next Item. If there are no more nodes, return null.