Search in sources :

Example 21 with Element

use of com.smartandroid.sa.tag.nodes.Element in project SmartAndroidSource by jaychou2012.

the class TreeBuilder method initialiseParse.

protected void initialiseParse(String input, String baseUri, ParseErrorList errors) {
    Validate.notNull(input, "String input must not be null");
    Validate.notNull(baseUri, "BaseURI must not be null");
    doc = new Document(baseUri);
    reader = new CharacterReader(input);
    this.errors = errors;
    tokeniser = new Tokeniser(reader, errors);
    stack = new DescendableLinkedList<Element>();
    this.baseUri = baseUri;
}
Also used : Element(com.smartandroid.sa.tag.nodes.Element) Document(com.smartandroid.sa.tag.nodes.Document)

Aggregations

Element (com.smartandroid.sa.tag.nodes.Element)21 FormElement (com.smartandroid.sa.tag.nodes.FormElement)13 Document (com.smartandroid.sa.tag.nodes.Document)4 Elements (com.smartandroid.sa.tag.select.Elements)2 Attribute (com.smartandroid.sa.tag.nodes.Attribute)1 Attributes (com.smartandroid.sa.tag.nodes.Attributes)1 Node (com.smartandroid.sa.tag.nodes.Node)1 IllegalCharsetNameException (java.nio.charset.IllegalCharsetNameException)1 ArrayList (java.util.ArrayList)1 LinkedHashSet (java.util.LinkedHashSet)1