class_body
{ "{"
field_declaration
modifiers
private "private"
type_identifier "Tag"
variable_declarator
identifier "tag"
; ";"
field_declaration (+22 nodes collapsed)
block_comment "/**\n * Create a new, standalone element.\n * @param t"...
constructor_declaration (+38 nodes collapsed)
block_comment "/**\n * Create a new, standalone Element. (Standalone in "...
constructor_declaration (+49 nodes collapsed)
block_comment "/**\n * Create a new Element from a tag and a base URI.\n "...
constructor_declaration (+33 nodes collapsed)
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Get the name of the tag for this element. E.g. {@"...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * Change the tag of this element. For example, conv"...
method_declaration (+52 nodes collapsed)
block_comment "/**\n * Get the Tag for this element.\n * \n * @ret"...
method_declaration
modifiers
public "public"
type_identifier "Tag"
identifier "tag"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "tag"
; ";"
} "}"
block_comment "/**\n * Test if this element is a block-level element. (E"...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * Get the {@code id} attribute of this element.\n "...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Set an attribute value on this element. If this e"...
method_declaration (+34 nodes collapsed)
block_comment "/**\n * Set a boolean attribute value on this element. Se"...
method_declaration (+34 nodes collapsed)
block_comment "/**\n * Get this element's HTML5 custom data attributes. "...
method_declaration (+28 nodes collapsed)
method_declaration (+23 nodes collapsed)
block_comment "/**\n * Get this element's parent and ancestors, up to th"...
method_declaration (+37 nodes collapsed)
method_declaration (+85 nodes collapsed)
block_comment "/**\n * Get a child element of this element, by its 0-bas"...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Get this element's child elements.\n * <p>\n "...
method_declaration (+85 nodes collapsed)
block_comment "/**\n * Get this element's child text nodes. The list is "...
method_declaration (+83 nodes collapsed)
block_comment "/**\n * Get this element's child data nodes. The list is "...
method_declaration (+83 nodes collapsed)
block_comment "/**\n * Find elements that match the {@link Selector} CSS"...
method_declaration (+27 nodes collapsed)
block_comment "/**\n * Check if this element matches the given {@link Se"...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Check if this element matches the given evaluator"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Add a node child node to this element.\n * \n "...
method_declaration (+73 nodes collapsed)
block_comment "/**\n * Add a node to the start of this element's childre"...
method_declaration (+38 nodes collapsed)
block_comment "/**\n * Inserts the given child nodes into this element a"...
method_declaration (+164 nodes collapsed)
block_comment "/**\n * Create a new element by tag name, and add it as t"...
method_declaration (+52 nodes collapsed)
block_comment "/**\n * Create a new element by tag name, and add it as t"...
method_declaration (+52 nodes collapsed)
block_comment "/**\n * Create and append a new TextNode to this element."...
method_declaration (+55 nodes collapsed)
block_comment "/**\n * Create and prepend a new TextNode to this element"...
method_declaration (+55 nodes collapsed)
block_comment "/**\n * Add inner HTML to this element. The supplied HTML"...
method_declaration (+82 nodes collapsed)
block_comment "/**\n * Add inner HTML into this element. The supplied HT"...
method_declaration (+84 nodes collapsed)
block_comment "/**\n * Insert the specified HTML into the DOM before thi"...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * Insert the specified node into the DOM before thi"...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * Insert the specified HTML into the DOM after this"...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * Insert the specified node into the DOM after this"...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * Remove all of the element's child nodes. Any attr"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Wrap the supplied HTML around this element.\n "...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * Get a CSS selector that will uniquely select this"...
method_declaration (+266 nodes collapsed)
block_comment "/**\n * Get sibling elements. If the element has no sibli"...
method_declaration (+105 nodes collapsed)
block_comment "/**\n * Gets the next sibling element of this element. E."...
method_declaration (+107 nodes collapsed)
block_comment "/**\n * Gets the previous element sibling of this element"...
method_declaration (+98 nodes collapsed)
block_comment "/**\n * Gets the first element sibling of this element.\n "...
method_declaration (+59 nodes collapsed)
block_comment "/**\n * Get the list index of this element in its element"...
method_declaration (+49 nodes collapsed)
block_comment "/**\n * Gets the last element sibling of this element\n "...
method_declaration (+67 nodes collapsed)
method_declaration (+112 nodes collapsed)
line_comment "// DOM type methods"
block_comment "/**\n * Finds elements, including and recursively under t"...
method_declaration (+64 nodes collapsed)
block_comment "/**\n * Find an element by ID, including or under this el"...
method_declaration (+80 nodes collapsed)
block_comment "/**\n * Find elements that have this class, including or "...
method_declaration (+46 nodes collapsed)
block_comment "/**\n * Find elements that have a named attribute set. Ca"...
method_declaration (+58 nodes collapsed)
block_comment "/**\n * Find elements that have an attribute name startin"...
method_declaration (+58 nodes collapsed)
block_comment "/**\n * Find elements that have an attribute with the spe"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Find elements that either do not have this attrib"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Find elements that have attributes that start wit"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Find elements that have attributes that end with "...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Find elements that have attributes whose value co"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Find elements that have attributes whose values m"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Find elements that have attributes whose values m"...
method_declaration (+81 nodes collapsed)
block_comment "/**\n * Find elements whose sibling index is less than th"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Find elements whose sibling index is greater than"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Find elements whose sibling index is equal to the"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Find elements that contain the specified string. "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Find elements that directly contain the specified"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Find elements whose text matches the supplied reg"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Find elements whose text matches the supplied reg"...
method_declaration (+75 nodes collapsed)
block_comment "/**\n * Find elements whose own text matches the supplied"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Find elements whose text matches the supplied reg"...
method_declaration (+75 nodes collapsed)
block_comment "/**\n * Find all elements under this element (including s"...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * Gets the combined text of this element and all it"...
method_declaration (+234 nodes collapsed)
block_comment "/**\n * Gets the text owned by this element only; does no"...
method_declaration (+47 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+78 nodes collapsed)
method_declaration (+69 nodes collapsed)
method_declaration (+91 nodes collapsed)
block_comment "/**\n * Set the text of this element. Any existing conten"...
method_declaration (+58 nodes collapsed)
block_comment "/**\n Test if this element has any text content (that is "...
method_declaration (+107 nodes collapsed)
block_comment "/**\n * Get the combined data of this element. Data is e."...
method_declaration (+170 nodes collapsed)
block_comment "/**\n * Gets the literal value of this element's \"class\" "...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * Get all of the element's class names. E.g. on ele"...
method_declaration (+85 nodes collapsed)
block_comment "/**\n Set the element's {@code class} attribute to the su"...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Tests if this element has a class. Case insensiti"...
line_comment "// performance sensitive"
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "hasClass"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "className"
) ")"
block
{ "{"
local_variable_declaration
modifiers
final "final"
type_identifier "String"
variable_declarator
identifier "classAttr"
= "="
method_invocation
identifier "attributes"
. "."
identifier "get"
argument_list
( "("
string_literal
" "\""
string_fragment "class"
" "\""
) ")"
; ";"
local_variable_declaration
modifiers
final "final"
integral_type
int "int"
variable_declarator
identifier "len"
= "="
method_invocation
identifier "classAttr"
. "."
identifier "length"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
modifiers
final "final"
integral_type
int "int"
variable_declarator
identifier "wantLen"
= "="
method_invocation
identifier "className"
. "."
identifier "length"
argument_list
( "("
) ")"
; ";"
if_statement (+22 nodes collapsed)
line_comment "// if both lengths are equal, only need compare the classNam"...
if_statement (+23 nodes collapsed)
line_comment "// otherwise, scan for whitespace and compare regions (with "...
local_variable_declaration
boolean_type "boolean"
variable_declarator
identifier "inClass"
= "="
false "false"
; ";"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "start"
= "="
decimal_integer_literal "0"
; ";"
for_statement (+127 nodes collapsed)
line_comment "// check the last entry"
if_statement (+37 nodes collapsed)
return_statement
return "return"
false "false"
; ";"
} "}"
block_comment "/**\n Add a class name to this element's {@code class} at"...
method_declaration (+62 nodes collapsed)
block_comment "/**\n Remove a class name from this element's {@code clas"...
method_declaration (+62 nodes collapsed)
block_comment "/**\n Toggle a class name on this element's {@code class}"...
method_declaration (+86 nodes collapsed)
block_comment "/**\n * Get the value of a form element (input, textarea,"...
method_declaration (+52 nodes collapsed)
block_comment "/**\n * Set the value of a form element (input, textarea,"...
method_declaration (+60 nodes collapsed)
method_declaration (+290 nodes collapsed)
method_declaration (+200 nodes collapsed)
block_comment "/**\n * Retrieves the element's inner HTML. E.g. on a {@c"...
method_declaration (+68 nodes collapsed)
method_declaration (+32 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n */"
method_declaration (+47 nodes collapsed)
block_comment "/**\n * Set this element's inner HTML. Clears the existin"...
method_declaration (+33 nodes collapsed)
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "toString"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "outerHtml"
argument_list
( "("
) ")"
; ";"
} "}"
method_declaration (+28 nodes collapsed)
} "}"