class_body
{ "{"
line_comment "// The number of characters after which we insert a line bre"...
field_declaration
modifiers
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "INDENT"
= "="
string_literal
" "\""
string_fragment " "
" "\""
; ";"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "indent"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/**\n * @param lineLengthThreshold The length of a line a"...
constructor_declaration (+36 nodes collapsed)
block_comment "/**\n * Appends a string to the code, keeping track of th"...
method_declaration (+96 nodes collapsed)
block_comment "/**\n * Adds a newline to the code, resetting the line le"...
method_declaration (+46 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
void_type "void"
identifier "maybeLineBreak"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "maybeCutLine"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/**\n * This may start a new line if the current line is "...
method_declaration (+32 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
void_type "void"
identifier "endLine"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "startNewLine"
argument_list
( "("
) ")"
; ";"
} "}"
method_declaration (+29 nodes collapsed)
method_declaration (+36 nodes collapsed)
method_declaration (+31 nodes collapsed)
method_declaration (+42 nodes collapsed)
method_declaration (+34 nodes collapsed)
method_declaration (+34 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
void_type "void"
identifier "appendOp"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "op"
, ","
formal_parameter
boolean_type "boolean"
identifier "binOp"
) ")"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
identifier "binOp"
) ")"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression any 1:3
method_invocation
identifier "getLastChar"
argument_list
( "("
) ")"
!= "!="
character_literal "' '"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "append"
argument_list
( "("
string_literal
" "\""
string_fragment " "
" "\""
) ")"
; ";"
} "}"
expression_statement
method_invocation
identifier "append"
argument_list
( "("
identifier "op"
) ")"
; ";"
expression_statement
method_invocation
identifier "append"
argument_list
( "("
string_literal
" "\""
string_fragment " "
" "\""
) ")"
; ";"
} "}"
else "else"
block
{ "{"
expression_statement
method_invocation
identifier "append"
argument_list
( "("
identifier "op"
) ")"
; ";"
} "}"
} "}"
block_comment "/**\n * If the body of a for loop or the then clause of a"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
boolean_type "boolean"
identifier "shouldPreserveExtraBlocks"
formal_parameters
( "("
) ")"
block
{ "{"
line_comment "// When pretty-printing, always place the statement in its o"...
line_comment "// so it is printed on a separate line. This allows breakpo"...
line_comment "// placed on the statement."
return_statement
return "return"
true "true"
; ";"
} "}"
block_comment "/**\n * @return The TRY node for the specified CATCH node"...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * @return Whether the a line break should be added "...
method_declaration (+185 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
void_type "void"
identifier "endFile"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "maybeEndStatement"
argument_list
( "("
) ")"
; ";"
} "}"
} "}"