Package org.htmlunit.html

# Class DomNode.DescendantDomElementsIterator

java.lang.Object
org.htmlunit.html.DomNode.DescendantDomElementsIterator

All Implemented Interfaces:
  `Iterator<DomElement>`

Enclosing class:
  `DomNode`

protected final class DomNode.DescendantDomElementsIterator extends Object implements Iterator<DomElement>
Iterates over all descendants DomTypes, in document order.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DescendantDomElementsIterator()`
  Creates a new instance which iterates over the specified node type.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasNext()`
  `DomElement`
  `next()`
  `DomElement`
  `nextNode()`
  `void`
  `remove()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining`

- ## Constructor Details

  - ### DescendantDomElementsIterator

    public DescendantDomElementsIterator()
    Creates a new instance which iterates over the specified node type.

- ## Method Details

  - ### hasNext

    public boolean hasNext()
    Specified by:
      `hasNext` in interface `Iterator<DomElement>`

  - ### next

    public DomElement next()
    Specified by:
      `next` in interface `Iterator<DomElement>`

  - ### remove

    public void remove()
    Specified by:
      `remove` in interface `Iterator<DomElement>`

  - ### nextNode

    public DomElement nextNode()
    Returns:
      the next node, if there is one