class_body
{ "{"
block_comment "/** Unmodifiable list of available locales. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "List"
variable_declarator
identifier "cAvailableLocaleList"
; ";"
block_comment "/** Unmodifiable set of available locales. */"
field_declaration
modifiers
private "private"
static "static"
type_identifier "Set"
variable_declarator
identifier "cAvailableLocaleSet"
; ";"
block_comment "/** Unmodifiable map of language locales by country. */"
field_declaration (+23 nodes collapsed)
block_comment "/** Unmodifiable map of country locales by language. */"
field_declaration (+23 nodes collapsed)
static_initializer (+38 nodes collapsed)
block_comment "/**\n * <p><code>LocaleUtils</code> instances should NOT "...
constructor_declaration
modifiers
public "public"
identifier "LocaleUtils"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
) ")"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Converts a String to a Locale.</p>\n *\n "...
method_declaration
modifiers
public "public"
static "static"
type_identifier "Locale"
identifier "toLocale"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "str"
) ")"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "str"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "len"
= "="
method_invocation
identifier "str"
. "."
identifier "length"
argument_list
( "("
) ")"
; ";"
if_statement (+40 nodes collapsed)
local_variable_declaration
integral_type
char "char"
variable_declarator
identifier "ch0"
= "="
method_invocation
identifier "str"
. "."
identifier "charAt"
argument_list
( "("
decimal_integer_literal "0"
) ")"
; ";"
local_variable_declaration
integral_type
char "char"
variable_declarator
identifier "ch1"
= "="
method_invocation
identifier "str"
. "."
identifier "charAt"
argument_list
( "("
decimal_integer_literal "1"
) ")"
; ";"
if_statement (+46 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "len"
== "=="
decimal_integer_literal "2"
) ")"
block
{ "{"
return_statement
return "return"
object_creation_expression
new "new"
type_identifier "Locale"
argument_list
( "("
identifier "str"
, ","
string_literal
" "\""
" "\""
) ")"
; ";"
} "}"
else "else"
block
{ "{"
if_statement (+35 nodes collapsed)
local_variable_declaration
integral_type
char "char"
variable_declarator
identifier "ch3"
= "="
method_invocation
identifier "str"
. "."
identifier "charAt"
argument_list
( "("
decimal_integer_literal "3"
) ")"
; ";"
local_variable_declaration
integral_type
char "char"
variable_declarator
identifier "ch4"
= "="
method_invocation
identifier "str"
. "."
identifier "charAt"
argument_list
( "("
decimal_integer_literal "4"
) ")"
; ";"
if_statement (+46 nodes collapsed)
if_statement (+120 nodes collapsed)
} "}"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of locales to search through "...
method_declaration (+26 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of locales to search through "...
method_declaration (+198 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains an unmodifiable list of installed loca"...
method_declaration
modifiers
public "public"
static "static"
type_identifier "List"
identifier "availableLocaleList"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "cAvailableLocaleList"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains an unmodifiable set of installed local"...
method_declaration (+70 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Checks if the locale specified is in the list "...
method_declaration (+30 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of languages supported for a "...
method_declaration (+220 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of countries supported for a "...
method_declaration (+238 nodes collapsed)
} "}"