class_body
{ "{"
block_comment "/**\n * Translate a set of codepoints, represented by an "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Helper for non-Writer usage. \n * @param input"...
method_declaration (+100 nodes collapsed)
block_comment "/**\n * Translate an input onto a Writer. This is intenti"...
method_declaration
modifiers
public "public"
final "final"
void_type "void"
identifier "translate"
formal_parameters
( "("
formal_parameter
type_identifier "CharSequence"
identifier "input"
, ","
formal_parameter
type_identifier "Writer"
identifier "out"
) ")"
throws
throws "throws"
type_identifier "IOException"
block
{ "{"
if_statement (+25 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "input"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
; ";"
} "}"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "pos"
= "="
decimal_integer_literal "0"
; ";"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "len"
= "="
method_invocation
identifier "input"
. "."
identifier "length"
argument_list
( "("
) ")"
; ";"
while_statement
while "while"
parenthesized_expression
( "("
binary_expression
identifier "pos"
< "<"
identifier "len"
) ")"
block
{ "{"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "consumed"
= "="
method_invocation
identifier "translate"
argument_list
( "("
identifier "input"
, ","
identifier "pos"
, ","
identifier "out"
) ")"
; ";"
if_statement (+62 nodes collapsed)
line_comment "// // contract with translators is that they have t"...
line_comment "// // and they just took care of a surrogate pair"
for_statement
for "for"
( "("
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "pt"
= "="
decimal_integer_literal "0"
; ";"
binary_expression
identifier "pt"
< "<"
identifier "consumed"
; ";"
update_expression
identifier "pt"
++ "++"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "pos"
+= "+="
method_invocation
identifier "Character"
. "."
identifier "charCount"
argument_list
( "("
method_invocation
identifier "Character"
. "."
identifier "codePointAt"
argument_list
( "("
identifier "input"
, ","
identifier "pos"
) ")"
) ")"
; ";"
} "}"
} "}"
} "}"
block_comment "/**\n * Helper method to create a merger of this translat"...
method_declaration (+81 nodes collapsed)
block_comment "/**\n * <p>Returns an upper case hexadecimal <code>String"...
method_declaration (+37 nodes collapsed)
} "}"