class_body
{ "{"
block_comment "/**\n * Creates a parser for the given {@link File}.\n "...
method_declaration (+89 nodes collapsed)
block_comment "/**\n * Creates a parser for the given {@link String}.\n "...
method_declaration (+74 nodes collapsed)
block_comment "/**\n * Creates a parser for the given URL.\n *\n *"...
method_declaration (+103 nodes collapsed)
line_comment "// the following objects are shared to reduce garbage"
field_declaration
modifiers
private "private"
final "final"
type_identifier "CSVFormat"
variable_declarator
identifier "format"
; ";"
block_comment "/** A mapping of column names to column indices */"
field_declaration
modifiers
private "private"
final "final"
generic_type
type_identifier "Map"
type_arguments
< "<"
type_identifier "String"
, ","
type_identifier "Integer"
> ">"
variable_declarator
identifier "headerMap"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Lexer"
variable_declarator
identifier "lexer"
; ";"
block_comment "/** A record buffer for getRecord(). Grows as necessary and "...
field_declaration (+25 nodes collapsed)
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "recordNumber"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Token"
variable_declarator
identifier "reusableToken"
= "="
object_creation_expression
new "new"
type_identifier "Token"
argument_list
( "("
) ")"
; ";"
block_comment "/**\n * Customized CSV parser using the given {@link CSVF"...
constructor_declaration (+101 nodes collapsed)
method_declaration (+104 nodes collapsed)
block_comment "/**\n * Closes resources.\n *\n * @throws IOExcepti"...
method_declaration (+41 nodes collapsed)
block_comment "/**\n * Returns the current line number in the input stre"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Returns a copy of the header map that iterates in"...
method_declaration (+49 nodes collapsed)
block_comment "/**\n * Returns the current record number in the input st"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getRecordNumber"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "recordNumber"
; ";"
} "}"
block_comment "/**\n * Parses the CSV input according to the given forma"...
method_declaration (+38 nodes collapsed)
block_comment "/**\n * Parses the CSV input according to the given forma"...
method_declaration (+75 nodes collapsed)
block_comment "/**\n * Initializes the name to index mapping if the form"...
method_declaration
modifiers
private "private"
generic_type
type_identifier "Map"
type_arguments
< "<"
type_identifier "String"
, ","
type_identifier "Integer"
> ">"
identifier "initializeHeader"
formal_parameters
( "("
) ")"
throws
throws "throws"
type_identifier "IOException"
block
{ "{"
local_variable_declaration
generic_type
type_identifier "Map"
type_arguments
< "<"
type_identifier "String"
, ","
type_identifier "Integer"
> ">"
variable_declarator
identifier "hdrMap"
= "="
null_literal "null"
; ";"
local_variable_declaration (+22 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "formatHeader"
!= "!="
null_literal "null"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "hdrMap"
= "="
object_creation_expression
new "new"
generic_type
type_identifier "LinkedHashMap"
type_arguments
< "<"
type_identifier "String"
, ","
type_identifier "Integer"
> ">"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
array_type
type_identifier "String"
dimensions
[ "["
] "]"
variable_declarator
identifier "headerRecord"
= "="
null_literal "null"
; ";"
if_statement (+92 nodes collapsed)
line_comment "// build the name to index mappings"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "headerRecord"
!= "!="
null_literal "null"
) ")"
block
{ "{"
for_statement
for "for"
( "("
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "i"
= "="
decimal_integer_literal "0"
; ";"
binary_expression
identifier "i"
< "<"
field_access
identifier "headerRecord"
. "."
identifier "length"
; ";"
update_expression
identifier "i"
++ "++"
) ")"
block
{ "{"
local_variable_declaration
modifiers
final "final"
type_identifier "String"
variable_declarator
identifier "header"
= "="
array_access
identifier "headerRecord"
[ "["
identifier "i"
] "]"
; ";"
local_variable_declaration
modifiers
final "final"
boolean_type "boolean"
variable_declarator
identifier "containsHeader"
= "="
method_invocation
identifier "hdrMap"
. "."
identifier "containsKey"
argument_list
( "("
identifier "header"
) ")"
; ";"
local_variable_declaration
modifiers
final "final"
boolean_type "boolean"
variable_declarator
identifier "emptyHeader"
= "="
method_invocation
method_invocation
identifier "header"
. "."
identifier "trim"
argument_list
( "("
) ")"
. "."
identifier "isEmpty"
argument_list
( "("
) ")"
; ";"
if_statement (+71 nodes collapsed)
expression_statement
method_invocation
identifier "hdrMap"
. "."
identifier "put"
argument_list
( "("
identifier "header"
, ","
method_invocation
identifier "Integer"
. "."
identifier "valueOf"
argument_list
( "("
identifier "i"
) ")"
) ")"
; ";"
} "}"
} "}"
} "}"
return_statement
return "return"
identifier "hdrMap"
; ";"
} "}"
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Returns an iterator on the records.\n *\n *"...
method_declaration (+301 nodes collapsed)
block_comment "/**\n * Parses the next record from the current point in "...
method_declaration (+409 nodes collapsed)
} "}"