|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsoup.select.NodeTraversor
public class NodeTraversor
Depth-first node traversor. Use to iterate through all nodes under and including the specified root node.
This implementation does not use recursion, so a deep DOM does not risk blowing the stack.
| Constructor Summary | |
|---|---|
NodeTraversor(NodeVisitor visitor)
Create a new traversor. |
|
| Method Summary | |
|---|---|
void |
traverse(Node root)
Start a depth-first traverse of the root and all of its descendants. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeTraversor(NodeVisitor visitor)
visitor - a class implementing the NodeVisitor interface, to be called when visiting each node.| Method Detail |
|---|
public void traverse(Node root)
root - the root node point to traverse.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||