class_body
{ "{"
block_comment "/** holder for flattened tokens */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "tokens"
= "="
object_creation_expression
new "new"
type_identifier "ArrayList"
argument_list
( "("
) ")"
; ";"
block_comment "/** specifies if bursting should continue */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "eatTheRest"
; ";"
block_comment "/** holder for the current option */"
field_declaration
modifiers
private "private"
type_identifier "Option"
variable_declarator
identifier "currentOption"
; ";"
block_comment "/** the command line Options */"
field_declaration
modifiers
private "private"
type_identifier "Options"
variable_declarator
identifier "options"
; ";"
block_comment "/**\n * Resets the members to their original state i.e. r"...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * <p>An implementation of {@link Parser}'s abstract"...
method_declaration
modifiers
protected "protected"
array_type
type_identifier "String"
dimensions
[ "["
] "]"
identifier "flatten"
formal_parameters
( "("
formal_parameter
type_identifier "Options"
identifier "options"
, ","
formal_parameter
array_type
type_identifier "String"
dimensions
[ "["
] "]"
identifier "arguments"
, ","
formal_parameter
boolean_type "boolean"
identifier "stopAtNonOption"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "init"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "options"
= "="
identifier "options"
; ";"
line_comment "// an iterator for the command line tokens"
local_variable_declaration
type_identifier "Iterator"
variable_declarator
identifier "iter"
= "="
method_invocation
method_invocation
identifier "Arrays"
. "."
identifier "asList"
argument_list
( "("
identifier "arguments"
) ")"
. "."
identifier "iterator"
argument_list
( "("
) ")"
; ";"
line_comment "// process each command line token"
while_statement
while "while"
parenthesized_expression
( "("
method_invocation
identifier "iter"
. "."
identifier "hasNext"
argument_list
( "("
) ")"
) ")"
block
{ "{"
line_comment "// get the next command line token"
local_variable_declaration
type_identifier "String"
variable_declarator
identifier "token"
= "="
cast_expression
( "("
type_identifier "String"
) ")"
method_invocation
identifier "iter"
. "."
identifier "next"
argument_list
( "("
) ")"
; ";"
line_comment "// handle long option --foo or --foo=bar"
if_statement
if "if"
parenthesized_expression
( "("
method_invocation
identifier "token"
. "."
identifier "startsWith"
argument_list
( "("
string_literal
" "\""
string_fragment "--"
" "\""
) ")"
) ")"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
method_invocation all 3:1
identifier "token" all 3:1
. "." all 3:1
identifier "indexOf" all 3:1
argument_list all 3:1
( "(" all 3:1
character_literal "'='" all 3:1
) ")" all 3:1
!= "!="
unary_expression
- "-"
decimal_integer_literal "1"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "tokens"
. "."
identifier "add"
argument_list
( "("
method_invocation
identifier "token"
. "."
identifier "substring"
argument_list
( "("
decimal_integer_literal "0"
, ","
method_invocation all 3:1
identifier "token" all 3:1
. "." all 3:1
identifier "indexOf" all 3:1
argument_list all 3:1
( "(" all 3:1
character_literal "'='" all 3:1
) ")" all 3:1
) ")"
) ")"
; ";"
expression_statement
method_invocation
identifier "tokens"
. "."
identifier "add"
argument_list
( "("
method_invocation
identifier "token"
. "."
identifier "substring"
argument_list
( "("
binary_expression
method_invocation all 3:1
identifier "token" all 3:1
. "." all 3:1
identifier "indexOf" all 3:1
argument_list all 3:1
( "(" all 3:1
character_literal "'='" all 3:1
) ")" all 3:1
+ "+"
decimal_integer_literal "1"
, ","
method_invocation
identifier "token"
. "."
identifier "length"
argument_list
( "("
) ")"
) ")"
) ")"
; ";"
} "}"
else "else"
block
{ "{"
expression_statement
method_invocation
identifier "tokens"
. "."
identifier "add"
argument_list
( "("
identifier "token"
) ")"
; ";"
} "}"
} "}"
line_comment "// single hyphen"
else "else"
if_statement (+151 nodes collapsed)
expression_statement
method_invocation
identifier "gobble"
argument_list
( "("
identifier "iter"
) ")"
; ";"
} "}"
return_statement (+31 nodes collapsed)
} "}"
block_comment "/**\n * Adds the remaining tokens to the processed tokens"...
method_declaration (+54 nodes collapsed)
block_comment "/**\n * <p>If there is a current option and it can have a"...
method_declaration (+125 nodes collapsed)
block_comment "/**\n * <p>If an {@link Option} exists for <code>token</c"...
method_declaration (+73 nodes collapsed)
block_comment "/**\n * <p>Breaks <code>token</code> into its constituent"...
method_declaration (+217 nodes collapsed)
} "}"