Package org.htmlunit.html
Class DomElement.ChildElementsIterator
java.lang.Object
org.htmlunit.html.DomElement.ChildElementsIterator
- All Implemented Interfaces:
Iterator<DomElement>
- Enclosing class:
DomElement
protected static class DomElement.ChildElementsIterator
extends Object
implements Iterator<DomElement>
An iterator over the DomElement children.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
next()
void
remove()
Removes the current one.private void
setNextElement
(DomNode node) 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
-
Field Details
-
nextElement_
-
-
Constructor Details
-
ChildElementsIterator
Constructor.- Parameters:
domNode
- the parent
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<DomElement>
- Returns:
- is there a next one ?
-
next
- Specified by:
next
in interfaceIterator<DomElement>
- Returns:
- the next one
-
remove
public void remove()Removes the current one.- Specified by:
remove
in interfaceIterator<DomElement>
-
setNextElement
-