Package: groovy.xml.slurpersupport

## [Java] Class NodeIterator

- groovy.xml.slurpersupport.NodeIterator

- All Implemented Interfaces and Traits:
    Iterator

      public abstract class NodeIterator
      extends Object
      implements Iterator

  Helper class for iterating through nodes.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `NodeIterator(Iterator iter)` Creates a filtering iterator over another iterator of candidate nodes.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `protected abstract Object` | `getNextNode(Iterator iter)` Returns the next node visible to callers, or `null` when iteration is exhausted.
    `` | `public boolean` | `hasNext()` {@inheritDoc}
    `` | `public Object` | `next()` {@inheritDoc}
    `` | `public void` | `remove()` {@inheritDoc}

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### public NodeIterator(Iterator iter)

      Creates a filtering iterator over another iterator of candidate nodes.

      Parameters:
        `iter` - source iterator

  - ### Method Detail

    - #### protected abstract Object getNextNode(Iterator iter)

      Returns the next node visible to callers, or `null` when iteration is exhausted.

      Parameters:
        `iter` - source iterator
      Returns:
        next matching node or `null`

    - #### public boolean hasNext()

      {@inheritDoc}

    - #### public Object next()

      {@inheritDoc}

    - #### public void remove()

      {@inheritDoc}