Class EmptyAxisIterator<T extends NodeInfo>

    • Constructor Detail

      • EmptyAxisIterator

        public EmptyAxisIterator()
    • Method Detail

      • iterateAxis

        public AxisIterator iterateAxis​(byte axis,
                                        NodeTest test)
        Return an iterator over an axis, starting at the current node.
        Specified by:
        iterateAxis in interface AxisIterator<T extends NodeInfo>
        Parameters:
        axis - the axis to iterate over, using a constant such as Axis.CHILD
        test - a predicate to apply to the nodes before returning them.
        Returns:
        an iterator over an axis, starting at the current node
        Throws:
        java.lang.NullPointerException - if there is no current node
      • moveNext

        public boolean moveNext()
        Move to the next node, without returning it. Returns true if there is a next node, false if the end of the sequence has been reached. After calling this method, the current node may be retrieved using the current() function.
        Specified by:
        moveNext in interface AxisIterator<T extends NodeInfo>
        Returns:
        true if there is a next node, false if the end of the sequence has been reached