abstract class TreeBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
baseUri |
protected Token |
currentToken |
protected Document |
doc |
private Token.EndTag |
end |
protected ParseErrorList |
errors |
(package private) CharacterReader |
reader |
protected ParseSettings |
settings |
protected ArrayList<Element> |
stack |
private Token.StartTag |
start |
(package private) Tokeniser |
tokeniser |
Constructor and Description |
---|
TreeBuilder() |
Modifier and Type | Method and Description |
---|---|
protected Element |
currentElement() |
(package private) abstract ParseSettings |
defaultSettings() |
protected void |
initialiseParse(Reader input,
String baseUri,
ParseErrorList errors,
ParseSettings settings) |
(package private) Document |
parse(Reader input,
String baseUri,
ParseErrorList errors,
ParseSettings settings) |
protected abstract boolean |
process(Token token) |
protected boolean |
processEndTag(String name) |
protected boolean |
processStartTag(String name) |
boolean |
processStartTag(String name,
Attributes attrs) |
protected void |
runParser() |
CharacterReader reader
protected Token currentToken
protected ParseErrorList errors
protected ParseSettings settings
private Token.StartTag start
private Token.EndTag end
TreeBuilder()
abstract ParseSettings defaultSettings()
protected void initialiseParse(Reader input, String baseUri, ParseErrorList errors, ParseSettings settings)
Document parse(Reader input, String baseUri, ParseErrorList errors, ParseSettings settings)
protected void runParser()
protected boolean processStartTag(String name)
public boolean processStartTag(String name, Attributes attrs)
protected boolean processEndTag(String name)
protected Element currentElement()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses