class_body
{ "{"
field_declaration (+27 nodes collapsed)
line_comment "// map of known tags"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "tagName"
; ";"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "normalName"
; ";"
line_comment "// always the lower case version of this tag, regardless of "...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "isBlock"
= "="
true "true"
; ";"
line_comment "// block or inline"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "formatAsBlock"
= "="
true "true"
; ";"
line_comment "// should be formatted as a block"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "canContainInline"
= "="
true "true"
; ";"
line_comment "// only pcdata if not"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "empty"
= "="
false "false"
; ";"
line_comment "// can hold nothing; e.g. img"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "selfClosing"
= "="
false "false"
; ";"
line_comment "// can self close (<foo />). used for unknown tags that self"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "preserveWhitespace"
= "="
false "false"
; ";"
line_comment "// for pre, textarea, script etc"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "formList"
= "="
false "false"
; ";"
line_comment "// a control that appears in forms: input, textarea, output "...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "formSubmit"
= "="
false "false"
; ";"
line_comment "// a control that can be submitted in a form: input etc"
constructor_declaration
modifiers
private "private"
identifier "Tag"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "tagName"
) ")"
constructor_body
{ "{"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "tagName"
= "="
identifier "tagName"
; ";"
expression_statement
assignment_expression
identifier "normalName"
= "="
method_invocation
identifier "Normalizer"
. "."
identifier "lowerCase"
argument_list
( "("
identifier "tagName"
) ")"
; ";"
} "}"
block_comment "/**\n * Get this tag's name.\n *\n * @return the ta"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "tagName"
; ";"
} "}"
block_comment "/**\n * Get this tag's normalized (lowercased) name.\n "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "normalName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "normalName"
; ";"
} "}"
block_comment "/**\n * Get a Tag by name. If not previously defined (unk"...
method_declaration (+129 nodes collapsed)
block_comment "/**\n * Get a Tag by name. If not previously defined (unk"...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * Gets if this is a block tag.\n *\n * @retur"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isBlock"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "isBlock"
; ";"
} "}"
block_comment "/**\n * Gets if this tag should be formatted as a block ("...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "formatAsBlock"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "formatAsBlock"
; ";"
} "}"
block_comment "/**\n * Gets if this tag can contain block tags.\n *\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "canContainBlock"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "isBlock"
; ";"
} "}"
block_comment "/**\n * Gets if this tag is an inline tag.\n *\n * "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isInline"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
unary_expression
! "!"
identifier "isBlock"
; ";"
} "}"
block_comment "/**\n * Gets if this tag is a data only tag.\n *\n "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Get if this is an empty tag\n *\n * @return"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isEmpty"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "empty"
; ";"
} "}"
block_comment "/**\n * Get if this tag is self closing.\n *\n * @r"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isSelfClosing"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "empty"
|| "||"
identifier "selfClosing"
; ";"
} "}"
block_comment "/**\n * Get if this is a pre-defined tag, or was auto cre"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Check if this tagname is a known tag.\n *\n "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Get if this tag should preserve whitespace within"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "preserveWhitespace"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "preserveWhitespace"
; ";"
} "}"
block_comment "/**\n * Get if this tag represents a control associated w"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isFormListed"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "formList"
; ";"
} "}"
block_comment "/**\n * Get if this tag represents an element that should"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isFormSubmittable"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "formSubmit"
; ";"
} "}"
method_declaration
type_identifier "Tag"
identifier "setSelfClosing"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "selfClosing"
= "="
true "true"
; ";"
return_statement
return "return"
this "this"
; ";"
} "}"
method_declaration (+203 nodes collapsed)
method_declaration (+193 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "String"
identifier "toString"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "tagName"
; ";"
} "}"
line_comment "// internal static initialisers:"
line_comment "// prepped from http://www.w3.org/TR/REC-html40/sgml/dtd.htm"...
field_declaration (+331 nodes collapsed)
field_declaration (+346 nodes collapsed)
field_declaration (+121 nodes collapsed)
field_declaration (+111 nodes collapsed)
field_declaration (+37 nodes collapsed)
line_comment "// todo: I think we just need submit tags, and can scrub lis"...
field_declaration (+56 nodes collapsed)
field_declaration (+41 nodes collapsed)
static_initializer (+318 nodes collapsed)
method_declaration (+30 nodes collapsed)
} "}"