Class DomNode.DescendantElementsIterator<T extends DomNode>
java.lang.Object
org.htmlunit.html.DomNode.DescendantElementsIterator<T>
- Type Parameters:
T- the type of nodes over which to iterate
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
DomNode
protected class DomNode.DescendantElementsIterator<T extends DomNode>
extends Object
implements Iterator<T>
Iterates over all descendants of a specific type, in document order.
- Author:
- Mike Bowler, Mike J. Bresnahan, David K. Taylor, Christian Sell, Chris Erskine, Mike Williams, Marc Guillemot, Denis N. Antonioli, Daniel Gredler, Ahmed Ashour, Rodney Gitzel, Sudhan Moghe, Tom Anderson, Ronald Brill, Chuck Dumont, Frank Danek
-
Constructor Summary
ConstructorsConstructorDescriptionDescendantElementsIterator(Class<T> type) Creates a new instance which iterates over the specified node type. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
DescendantElementsIterator
-
-
Method Details
-
hasNext
-
next
-
remove
-
nextNode
- Returns:
- the next node, if there is one
-
isAccepted
Indicates if the node is accepted. If not it won't be explored at all.- Parameters:
node- the node to test- Returns:
trueif accepted
-