Class SingletonIterator

  • All Implemented Interfaces:
    java.lang.Cloneable, DTMAxisIterator

    public class SingletonIterator
    extends DTMAxisIteratorBase
    Author:
    Jacek Ambroziak, Santiago Pericas-Geertsen
    • Constructor Detail

      • SingletonIterator

        public SingletonIterator()
      • SingletonIterator

        public SingletonIterator​(int node)
      • SingletonIterator

        public SingletonIterator​(int node,
                                 boolean constant)
    • Method Detail

      • setStartNode

        public DTMAxisIterator setStartNode​(int node)
        Override the value of _node only when this object was constructed using the empty constructor.
        Parameters:
        node - Sets the root of the iteration.
        Returns:
        A DTMAxisIterator set to the start of the iteration.
      • next

        public int next()
        Description copied from interface: DTMAxisIterator
        Get the next node in the iteration.
        Returns:
        The next node handle in the iteration, or END.
      • setMark

        public void setMark()
        Description copied from interface: DTMAxisIterator
        Remembers the current node for the next call to gotoMark().
      • gotoMark

        public void gotoMark()
        Description copied from interface: DTMAxisIterator
        Restores the current node remembered by setMark().