Class AxisIteratorImpl

    • Field Detail

      • position

        protected int position
      • current

        protected Item current
    • Constructor Detail

      • AxisIteratorImpl

        public AxisIteratorImpl()
    • Method Detail

      • current

        public final Item current()
        Get the current node in the sequence.
        Specified by:
        current in interface AxisIterator
        Specified by:
        current in interface SequenceIterator
        Returns:
        the node returned by the most recent call on next()
      • position

        public final int position()
        Get the current position
        Specified by:
        position in interface AxisIterator
        Specified by:
        position in interface SequenceIterator
        Returns:
        the position of the most recent node returned by next()
      • setIsAtomizing

        public void setIsAtomizing​(boolean atomizing)
        Indicate that any nodes returned in the sequence will be atomized. This means that if it wishes to do so, the implementation can return the typed values of the nodes rather than the nodes themselves. The implementation is free to ignore this hint.
        Specified by:
        setIsAtomizing in interface AtomizableIterator
        Parameters:
        atomizing - true if the caller of this iterator will atomize any nodes that are returned, and is therefore willing to accept the typed value of the nodes instead of the nodes themselves.
      • isAtomizing

        protected final boolean isAtomizing()
        Determine whether any nodes returned by this iterator will be atomized, in which case the supplier has the option of atomizing them eagerly.