class_body
{ "{"
field_declaration
modifiers
protected "protected"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "dataPrefix"
= "="
string_literal
" "\""
string_fragment "data-"
" "\""
; ";"
field_declaration
modifiers
private "private"
generic_type
type_identifier "LinkedHashMap"
type_arguments
< "<"
type_identifier "String"
, ","
type_identifier "Attribute"
> ">"
variable_declarator
identifier "attributes"
= "="
null_literal "null"
; ";"
line_comment "// linked hash map to preserve insertion order."
line_comment "// null be default as so many elements have no attributes --"...
block_comment "/**\n Get an attribute value by key.\n @param key the "...
method_declaration (+73 nodes collapsed)
block_comment "/**\n * Get an attribute's value by case-insensitive key\n"...
method_declaration (+92 nodes collapsed)
block_comment "/**\n Set a new attribute, or replace an existing one by "...
method_declaration (+41 nodes collapsed)
block_comment "/**\n Set a new boolean attribute, remove attribute if val"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n Set a new attribute, or replace an existing one by "...
method_declaration (+70 nodes collapsed)
block_comment "/**\n Remove an attribute by key. <b>Case sensitive.</b>\n"...
method_declaration (+46 nodes collapsed)
block_comment "/**\n Remove an attribute by key. <b>Case insensitive.</b"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "removeIgnoreCase"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "key"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "Validate"
. "."
identifier "notEmpty"
argument_list
( "("
identifier "key"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "attributes"
== "=="
null_literal "null"
) ")"
return_statement
return "return"
; ";"
for_statement
for "for"
( "("
local_variable_declaration (+24 nodes collapsed)
method_invocation
identifier "it"
. "."
identifier "hasNext"
argument_list
( "("
) ")"
; ";"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "String"
variable_declarator
identifier "attrKey"
= "="
method_invocation
identifier "it"
. "."
identifier "next"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
method_invocation
identifier "attrKey"
. "."
identifier "equalsIgnoreCase"
argument_list
( "("
identifier "key"
) ")"
) ")"
expression_statement
method_invocation
identifier "attributes"
. "."
identifier "remove"
argument_list
( "("
identifier "attrKey"
) ")"
; ";"
} "}"
} "}"
block_comment "/**\n Tests if these attributes contain an attribute with"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n Tests if these attributes contain an attribute with"...
method_declaration (+65 nodes collapsed)
block_comment "/**\n Get the number of attributes in this set.\n @ret"...
method_declaration (+35 nodes collapsed)
block_comment "/**\n Add all the attributes from the incoming set to thi"...
method_declaration (+79 nodes collapsed)
method_declaration (+73 nodes collapsed)
block_comment "/**\n Get the attributes as a List, for iteration. Do not"...
method_declaration (+118 nodes collapsed)
block_comment "/**\n * Retrieves a filtered view of attributes that are "...
method_declaration (+27 nodes collapsed)
block_comment "/**\n Get the HTML representation of these attributes.\n "...
method_declaration (+88 nodes collapsed)
method_declaration (+99 nodes collapsed)
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Checks if these attributes are equal to another s"...
method_declaration (+94 nodes collapsed)
block_comment "/**\n * Calculates the hashcode of these attributes, by i"...
method_declaration (+33 nodes collapsed)
method_declaration (+146 nodes collapsed)
class_declaration (+505 nodes collapsed)
method_declaration (+22 nodes collapsed)
} "}"