public class HTMLTreeWalker
extends java.lang.Object
| Constructor and Description |
|---|
HTMLTreeWalker(org.jsoup.nodes.Node root)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.jsoup.nodes.Node |
currentNode()
Return the current node.
|
int |
getLevel()
Return the current level in the tree.
|
java.lang.String |
getNodeValue()
Return the current node value.
|
boolean |
hasNext()
Return true if there is a next node.
|
boolean |
hasText()
Return true if the current node has text.
|
boolean |
isTextNode()
Return true if the current node is a text node.
|
org.jsoup.nodes.Node |
nextNode()
Return the next node.
|
public HTMLTreeWalker(org.jsoup.nodes.Node root)
root - the initial root nodepublic org.jsoup.nodes.Node nextNode()
public int getLevel()
public boolean isTextNode()
public boolean hasText()
public java.lang.String getNodeValue()
public boolean hasNext()
public org.jsoup.nodes.Node currentNode()
Copyright © 2016-2026 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence