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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDescendantElementsIterator(Class<T> type) Creates a new instance which iterates over the specified node type. -
Method Summary
Modifier and TypeMethodDescriptionprivate DomNodegetFirstChildElement(DomNode parent) private DomNodegetNextDomSibling(DomNode element) private DomNodegetNextElementUpwards(DomNode startingNode) booleanhasNext()protected booleanisAccepted(DomNode node) Indicates if the node is accepted.next()nextNode()voidremove()private voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
currentNode_
-
nextNode_
-
type_
-
-
Constructor Details
-
DescendantElementsIterator
-
-
Method Details
-
hasNext
-
next
-
remove
-
nextNode
- Returns:
- the next node, if there is one
-
setNextElement
private void setNextElement() -
getNextElementUpwards
-
getFirstChildElement
-
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
-
getNextDomSibling
-