Class CGINIterator

    • Field Detail

      • children

        protected CGINPointer[] children
        Array of pointers to nodes that passed the NodeTest.
      • position

        protected int position
        Current position. Positions are counted from 1.
    • Constructor Detail

      • CGINIterator

        public CGINIterator()
        Subclasses are responsible for initialising the fields.
    • Method Detail

      • getNodePointer

        public CGINPointer getNodePointer()
        Gets pointer to node at current position.
        Specified by:
        getNodePointer in interface org.apache.commons.jxpath.ri.model.NodeIterator
        Returns:
        CGINPointer
      • getPosition

        public int getPosition()
        Gets the current position. Positions are counted from 1.
        Specified by:
        getPosition in interface org.apache.commons.jxpath.ri.model.NodeIterator
        Returns:
        int
      • setPosition

        public boolean setPosition​(int position)
        Sets the current position. Positions are counted from 1.
        Specified by:
        setPosition in interface org.apache.commons.jxpath.ri.model.NodeIterator
        Parameters:
        position - new position
        Returns:
        whether the new position is within range to refer to a node to be visited