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. (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 (+46 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 * 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 * Add a node child node to this element.\n * \n "...
method_declaration (+66 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 (+45 nodes collapsed)
block_comment "/**\n * Create and prepend a new TextNode to this element"...
method_declaration (+45 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 (+249 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
modifiers
private "private"
static "static"
type_parameters
< "<"
type_parameter
type_identifier "E"
type_bound
extends "extends"
type_identifier "Element"
> ">"
type_identifier "Integer"
identifier "indexInList"
formal_parameters
( "("
formal_parameter
type_identifier "Element"
identifier "search"
, ","
formal_parameter
generic_type
type_identifier "List"
type_arguments
< "<"
type_identifier "E"
> ">"
identifier "elements"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "Validate"
. "."
identifier "notNull"
argument_list
( "("
identifier "search"
) ")"
; ";"
expression_statement
method_invocation
identifier "Validate"
. "."
identifier "notNull"
argument_list
( "("
identifier "elements"
) ")"
; ";"
for_statement
for "for"
( "("
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "i"
= "="
decimal_integer_literal "0"
; ";"
binary_expression
identifier "i"
< "<"
method_invocation
identifier "elements"
. "."
identifier "size"
argument_list
( "("
) ")"
; ";"
update_expression
identifier "i"
++ "++"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "E"
variable_declarator
identifier "element"
= "="
method_invocation
identifier "elements"
. "."
identifier "get"
argument_list
( "("
identifier "i"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
method_invocation
identifier "element"
. "."
identifier "equals"
argument_list
( "("
identifier "search"
) ")"
) ")"
return_statement
return "return"
identifier "i"
; ";"
} "}"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
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 (+64 nodes collapsed)
block_comment "/**\n * Find elements that have an attribute name startin"...
method_declaration (+64 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 (+130 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"...
block_comment "/*\n Used by common .class selector, so perf tweaked to re"...
method_declaration (+120 nodes collapsed)
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 (+246 nodes collapsed)
method_declaration (+197 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 * 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 (+103 nodes collapsed)
method_declaration (+62 nodes collapsed)
method_declaration (+28 nodes collapsed)
} "}"