class_body
{ "{"
block_comment "/**\n * Predefines formats.\n *\n * @since 1.2\n "...
enum_declaration (+132 nodes collapsed)
block_comment "/**\n * Standard comma separated format, as for {@link #R"...
field_declaration (+47 nodes collapsed)
block_comment "/**\n * Excel file format (using a comma as the value del"...
field_declaration (+24 nodes collapsed)
block_comment "/**\n * Default Informix CSV UNLOAD format used by the {@"...
field_declaration (+39 nodes collapsed)
block_comment "/**\n * Default Informix CSV UNLOAD format used by the {@"...
field_declaration (+32 nodes collapsed)
block_comment "/**\n * Default MySQL format used by the {@code SELECT IN"...
field_declaration (+57 nodes collapsed)
block_comment "/**\n * Comma separated format as defined by <a href=\"htt"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "CSVFormat"
variable_declarator
identifier "RFC4180"
= "="
method_invocation
identifier "DEFAULT"
. "."
identifier "withIgnoreEmptyLines"
argument_list
( "("
false "false"
) ")"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1L"
; ";"
block_comment "/**\n * Tab-delimited format.\n *\n * <p>\n * Se"...
field_declaration (+24 nodes collapsed)
block_comment "/**\n * Returns true if the given character is a line bre"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Returns true if the given character is a line bre"...
method_declaration (+38 nodes collapsed)
block_comment "/**\n * Creates a new CSV format with the specified delim"...
method_declaration (+58 nodes collapsed)
block_comment "/**\n * Gets one of the predefined formats from {@link CS"...
method_declaration (+37 nodes collapsed)
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "allowMissingColumnNames"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Character"
variable_declarator
identifier "commentMarker"
; ";"
line_comment "// null if commenting is disabled"
field_declaration
modifiers
private "private"
final "final"
integral_type
char "char"
variable_declarator
identifier "delimiter"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Character"
variable_declarator
identifier "escapeCharacter"
; ";"
line_comment "// null if escaping is disabled"
field_declaration
modifiers
private "private"
final "final"
array_type
type_identifier "String"
dimensions
[ "["
] "]"
variable_declarator
identifier "header"
; ";"
line_comment "// array of header column names"
field_declaration
modifiers
private "private"
final "final"
array_type
type_identifier "String"
dimensions
[ "["
] "]"
variable_declarator
identifier "headerComments"
; ";"
line_comment "// array of header comment lines"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "ignoreEmptyLines"
; ";"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "ignoreHeaderCase"
; ";"
line_comment "// should ignore header names case"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "ignoreSurroundingSpaces"
; ";"
line_comment "// Should leading/trailing spaces be ignored around values?"
field_declaration
modifiers
private "private"
final "final"
type_identifier "String"
variable_declarator
identifier "nullString"
; ";"
line_comment "// the string to be used for null values"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Character"
variable_declarator
identifier "quoteCharacter"
; ";"
line_comment "// null if quoting is disabled"
field_declaration
modifiers
private "private"
final "final"
type_identifier "QuoteMode"
variable_declarator
identifier "quoteMode"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "String"
variable_declarator
identifier "recordSeparator"
; ";"
line_comment "// for outputs"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "skipHeaderRecord"
; ";"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "trailingDelimiter"
; ";"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "trim"
; ";"
block_comment "/**\n * Creates a customized CSV format.\n *\n * @p"...
constructor_declaration (+284 nodes collapsed)
method_declaration (+501 nodes collapsed)
block_comment "/**\n * Formats the specified values.\n *\n * @para"...
method_declaration (+105 nodes collapsed)
block_comment "/**\n * Specifies whether missing column names are allowe"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "getAllowMissingColumnNames"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "allowMissingColumnNames"
; ";"
} "}"
block_comment "/**\n * Returns the character marking the start of a line"...
method_declaration
modifiers
public "public"
type_identifier "Character"
identifier "getCommentMarker"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "commentMarker"
; ";"
} "}"
block_comment "/**\n * Returns the character delimiting the values (typi"...
method_declaration
modifiers
public "public"
integral_type
char "char"
identifier "getDelimiter"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "delimiter"
; ";"
} "}"
block_comment "/**\n * Returns the escape character.\n *\n * @retu"...
method_declaration
modifiers
public "public"
type_identifier "Character"
identifier "getEscapeCharacter"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "escapeCharacter"
; ";"
} "}"
block_comment "/**\n * Returns a copy of the header array.\n *\n *"...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Returns a copy of the header comment array.\n "...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Specifies whether empty lines between records are"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "getIgnoreEmptyLines"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "ignoreEmptyLines"
; ";"
} "}"
block_comment "/**\n * Specifies whether header names will be accessed i"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "getIgnoreHeaderCase"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "ignoreHeaderCase"
; ";"
} "}"
block_comment "/**\n * Specifies whether spaces around values are ignore"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "getIgnoreSurroundingSpaces"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "ignoreSurroundingSpaces"
; ";"
} "}"
block_comment "/**\n * Gets the String to convert to and from {@code nul"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getNullString"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "nullString"
; ";"
} "}"
block_comment "/**\n * Returns the character used to encapsulate values "...
method_declaration
modifiers
public "public"
type_identifier "Character"
identifier "getQuoteCharacter"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "quoteCharacter"
; ";"
} "}"
block_comment "/**\n * Returns the quote policy output fields.\n *\n "...
method_declaration
modifiers
public "public"
type_identifier "QuoteMode"
identifier "getQuoteMode"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "quoteMode"
; ";"
} "}"
block_comment "/**\n * Returns the record separator delimiting output re"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getRecordSeparator"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "recordSeparator"
; ";"
} "}"
block_comment "/**\n * Returns whether to skip the header record.\n *"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "getSkipHeaderRecord"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "skipHeaderRecord"
; ";"
} "}"
block_comment "/**\n * Returns whether to add a trailing delimiter.\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "getTrailingDelimiter"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "trailingDelimiter"
; ";"
} "}"
block_comment "/**\n * Returns whether to trim leading and trailing blan"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "getTrim"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "trim"
; ";"
} "}"
method_declaration (+340 nodes collapsed)
block_comment "/**\n * Specifies whether comments are supported by this "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isCommentMarkerSet"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "commentMarker"
!= "!="
null_literal "null"
; ";"
} "}"
block_comment "/**\n * Returns whether escape are being processed.\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isEscapeCharacterSet"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "escapeCharacter"
!= "!="
null_literal "null"
; ";"
} "}"
block_comment "/**\n * Returns whether a nullString has been defined.\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isNullStringSet"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "nullString"
!= "!="
null_literal "null"
; ";"
} "}"
block_comment "/**\n * Returns whether a quoteChar has been defined.\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isQuoteCharacterSet"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "quoteCharacter"
!= "!="
null_literal "null"
; ";"
} "}"
block_comment "/**\n * Parses the specified content.\n *\n * <p>\n "...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Prints to the specified output.\n *\n * <p>"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Prints to the specified output.\n *\n * <p>"...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Prints to the specified output.\n *\n * <p>"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Prints the {@code value} as the next value on the"...
method_declaration (+141 nodes collapsed)
method_declaration (+180 nodes collapsed)
block_comment "/*\n * Note: must only be called if escaping is enabled, "...
method_declaration (+285 nodes collapsed)
block_comment "/*\n * Note: must only be called if quoting is enabled, o"...
line_comment "// the original object is needed so can check for Number"
method_declaration
modifiers
private "private"
void_type "void"
identifier "printAndQuote"
formal_parameters (+40 nodes collapsed)
throws
throws "throws"
type_identifier "IOException"
block
{ "{"
local_variable_declaration
boolean_type "boolean"
variable_declarator
identifier "quote"
= "="
false "false"
; ";"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "start"
= "="
identifier "offset"
; ";"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "pos"
= "="
identifier "offset"
; ";"
local_variable_declaration
modifiers
final "final"
integral_type
int "int"
variable_declarator
identifier "end"
= "="
binary_expression
identifier "offset"
+ "+"
identifier "len"
; ";"
local_variable_declaration
modifiers
final "final"
integral_type
char "char"
variable_declarator
identifier "delimChar"
= "="
method_invocation
identifier "getDelimiter"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
modifiers
final "final"
integral_type
char "char"
variable_declarator
identifier "quoteChar"
= "="
method_invocation
method_invocation
identifier "getQuoteCharacter"
argument_list
( "("
) ")"
. "."
identifier "charValue"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
type_identifier "QuoteMode"
variable_declarator
identifier "quoteModePolicy"
= "="
method_invocation
identifier "getQuoteMode"
argument_list
( "("
) ")"
; ";"
if_statement (+21 nodes collapsed)
switch_expression
switch "switch"
parenthesized_expression
( "("
identifier "quoteModePolicy"
) ")"
switch_block
{ "{"
switch_block_statement_group
switch_label
case "case"
identifier "ALL"
: ":"
expression_statement
assignment_expression
identifier "quote"
= "="
true "true"
; ";"
break_statement
break "break"
; ";"
switch_block_statement_group (+22 nodes collapsed)
switch_block_statement_group (+23 nodes collapsed)
switch_block_statement_group
switch_label
case "case"
identifier "MINIMAL"
: ":"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "len"
<= "<="
decimal_integer_literal "0"
) ")"
block (+22 nodes collapsed)
else "else"
block
{ "{"
local_variable_declaration
integral_type
char "char"
variable_declarator
identifier "c"
= "="
method_invocation
identifier "value"
. "."
identifier "charAt"
argument_list
( "("
identifier "pos"
) ")"
; ";"
line_comment "// RFC4180 (https://tools.ietf.org/html/rfc4180) TEXTDATA = "...
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "newRecord"
&& "&&"
parenthesized_expression
( "("
binary_expression
binary_expression
binary_expression
binary_expression
identifier "c"
< "<"
character_literal "'0'"
|| "||"
binary_expression
binary_expression
identifier "c"
> ">"
character_literal "'9'"
&& "&&"
binary_expression
identifier "c"
< "<"
character_literal "'A'"
|| "||"
binary_expression
binary_expression
identifier "c"
> ">"
character_literal "'Z'"
&& "&&"
binary_expression
identifier "c"
< "<"
character_literal "'a'"
|| "||"
binary_expression
identifier "c"
> ">"
character_literal "'z'"
) ")"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "quote"
= "="
true "true"
; ";"
} "}"
else "else"
if_statement (+147 nodes collapsed)
} "}"
if_statement (+29 nodes collapsed)
break_statement
break "break"
; ";"
switch_block_statement_group
switch_label
default "default"
: ":"
throw_statement
throw "throw"
object_creation_expression
new "new"
type_identifier "IllegalStateException"
argument_list
( "("
binary_expression
string_literal
" "\""
string_fragment "Unexpected Quote value: "
" "\""
+ "+"
identifier "quoteModePolicy"
) ")"
; ";"
} "}"
if_statement (+29 nodes collapsed)
line_comment "// we hit something that needed encapsulation"
expression_statement
method_invocation
identifier "out"
. "."
identifier "append"
argument_list
( "("
identifier "quoteChar"
) ")"
; ";"
line_comment "// Pick up where we left off: pos should be positioned on th"...
line_comment "// the need for encapsulation."
while_statement (+73 nodes collapsed)
line_comment "// write the last segment"
expression_statement
method_invocation
identifier "out"
. "."
identifier "append"
argument_list
( "("
identifier "value"
, ","
identifier "start"
, ","
identifier "pos"
) ")"
; ";"
expression_statement
method_invocation
identifier "out"
. "."
identifier "append"
argument_list
( "("
identifier "quoteChar"
) ")"
; ";"
} "}"
block_comment "/**\n * Outputs the record separator.\n *\n * @para"...
method_declaration (+68 nodes collapsed)
block_comment "/**\n * Prints the given {@code values} to {@code out} as"...
method_declaration (+80 nodes collapsed)
method_declaration (+510 nodes collapsed)
method_declaration (+129 nodes collapsed)
method_declaration (+167 nodes collapsed)
block_comment "/**\n * Verifies the consistency of the parameters and th"...
method_declaration (+400 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the missing "...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the missing "...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the comment "...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the comment "...
method_declaration (+83 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the delimite"...
method_declaration (+84 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the escape c"...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the escape c"...
method_declaration (+83 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} using the first r"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the header o"...
method_declaration (+148 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the header o"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the header o"...
method_declaration (+122 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the header o"...
method_declaration (+58 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the header c"...
method_declaration (+58 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the empty li"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the empty li"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the header i"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with whether head"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the trimming"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the trimming"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with conversions "...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the quoteCha"...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the quoteCha"...
method_declaration (+83 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the output q"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the record s"...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with the record s"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with skipping the"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} with whether to s"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} to add a trailing"...
method_declaration
modifiers
public "public"
type_identifier "CSVFormat"
identifier "withTrailingDelimiter"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "withTrailingDelimiter"
argument_list
( "("
true "true"
) ")"
; ";"
} "}"
block_comment "/**\n * Returns a new {@code CSVFormat} with whether to a"...
method_declaration (+56 nodes collapsed)
block_comment "/**\n * Returns a new {@code CSVFormat} to trim leading a"...
method_declaration
modifiers
public "public"
type_identifier "CSVFormat"
identifier "withTrim"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "withTrim"
argument_list
( "("
true "true"
) ")"
; ";"
} "}"
block_comment "/**\n * Returns a new {@code CSVFormat} with whether to t"...
method_declaration (+56 nodes collapsed)
} "}"