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
ConstructorsConstructorDescriptionCreates a new instance which iterates over the specified node type. -
Method Summary
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 interfaceIterator<DomElement>
-
next
- Specified by:
next
in interfaceIterator<DomElement>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<DomElement>
-
nextNode
- Returns:
- the next node, if there is one
-