|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode.DescendantElementsIterator<T>
T - the type of nodes over which to iterateprotected class DomNode.DescendantElementsIterator<T extends DomNode>
Iterates over all descendants of a specific type, in document order.
| Constructor Summary | |
|---|---|
DomNode.DescendantElementsIterator(Class<T> type)
Creates a new instance which iterates over the specified node type. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
protected boolean |
isAccepted(DomNode node)
Indicates if the node is accepted. |
T |
next()
|
T |
nextNode()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomNode.DescendantElementsIterator(Class<T> type)
type - the type of nodes over which to iterate| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<T extends DomNode>public T next()
next in interface Iterator<T extends DomNode>public void remove()
remove in interface Iterator<T extends DomNode>public T nextNode()
protected boolean isAccepted(DomNode node)
node - the node to test
true if accepted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||