Package org.htmlunit.html
Class DomElement.ChildElementsIterator
- java.lang.Object
-
- org.htmlunit.html.DomElement.ChildElementsIterator
-
- All Implemented Interfaces:
java.util.Iterator<DomElement>
- Enclosing class:
- DomElement
protected static class DomElement.ChildElementsIterator extends java.lang.Object implements java.util.Iterator<DomElement>
An iterator over the DomElement children.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChildElementsIterator(DomNode domNode)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
DomElement
next()
void
remove()
Removes the current one.
-
-
-
Constructor Detail
-
ChildElementsIterator
protected ChildElementsIterator(DomNode domNode)
Constructor.- Parameters:
domNode
- the parent
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<DomElement>
- Returns:
- is there a next one ?
-
next
public DomElement next()
- Specified by:
next
in interfacejava.util.Iterator<DomElement>
- Returns:
- the next one
-
remove
public void remove()
Removes the current one.- Specified by:
remove
in interfacejava.util.Iterator<DomElement>
-
-