com.gargoylesoftware.htmlunit.html
Class DomNode.DescendantElementsIterator<T extends DomNode>
java.lang.Object
com.gargoylesoftware.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomNode.DescendantElementsIterator
public DomNode.DescendantElementsIterator(Class<T> type)
- Creates a new instance which iterates over the specified node type.
- Parameters:
type
- the type of nodes over which to iterate
hasNext
public boolean hasNext()
-
- Specified by:
hasNext
in interface Iterator<T extends DomNode>
next
public T next()
-
- Specified by:
next
in interface Iterator<T extends DomNode>
remove
public void remove()
-
- Specified by:
remove
in interface Iterator<T extends DomNode>
nextNode
public T nextNode()
- Returns:
- the next node, if there is one
Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.