public class HtmlTreeBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
baseUri |
protected org.jsoup.parser.Token |
currentToken |
protected Document |
doc |
static int |
MaxScopeSearchDepth |
protected Parser |
parser |
protected ParseSettings |
settings |
protected ArrayList<Element> |
stack |
Constructor and Description |
---|
HtmlTreeBuilder() |
Modifier and Type | Method and Description |
---|---|
protected Element |
currentElement()
Get the current element (last on the stack).
|
protected boolean |
currentElementIs(String normalName)
Checks if the Current Element's normal name equals the supplied name.
|
protected void |
error(String msg)
If the parser is tracking errors, add an error at the current position.
|
protected void |
initialiseParse(Reader input,
String baseUri,
Parser parser) |
protected boolean |
isContentForTagData(String normalName)
(An internal method, visible for Element.
|
protected boolean |
process(org.jsoup.parser.Token token) |
protected boolean |
processEndTag(String name) |
protected boolean |
processStartTag(String name) |
boolean |
processStartTag(String name,
Attributes attrs) |
protected void |
runParser() |
String |
toString() |
public static final int MaxScopeSearchDepth
protected Parser parser
protected Document doc
protected String baseUri
protected org.jsoup.parser.Token currentToken
protected ParseSettings settings
@ParametersAreNonnullByDefault protected void initialiseParse(Reader input, String baseUri, Parser parser)
protected boolean process(org.jsoup.parser.Token token)
protected boolean isContentForTagData(String normalName)
protected void runParser()
protected boolean processStartTag(String name)
public boolean processStartTag(String name, Attributes attrs)
protected boolean processEndTag(String name)
protected Element currentElement()
protected boolean currentElementIs(String normalName)
normalName
- name to checkprotected void error(String msg)
msg
- error messageCopyright © 2009–2023 Jonathan Hedley. All rights reserved.