class_body
{ "{"
block_comment "/** The command-line instance. */"
field_declaration
modifiers
protected "protected"
type_identifier "CommandLine"
variable_declarator
identifier "cmd"
; ";"
block_comment "/** The current options. */"
field_declaration
modifiers
protected "protected"
type_identifier "Options"
variable_declarator
identifier "options"
; ";"
block_comment "/**\n * Flag indicating how unrecognized tokens are handl"...
field_declaration
modifiers
protected "protected"
boolean_type "boolean"
variable_declarator
identifier "stopAtNonOption"
; ";"
block_comment "/** The token currently processed. */"
field_declaration
modifiers
protected "protected"
type_identifier "String"
variable_declarator
identifier "currentToken"
; ";"
block_comment "/** The last option parsed. */"
field_declaration
modifiers
protected "protected"
type_identifier "Option"
variable_declarator
identifier "currentOption"
; ";"
block_comment "/** Flag indicating if tokens should no longer be analyzed a"...
field_declaration
modifiers
protected "protected"
boolean_type "boolean"
variable_declarator
identifier "skipParsing"
; ";"
block_comment "/** The required options and groups expected to be found whe"...
field_declaration
modifiers
protected "protected"
type_identifier "List"
variable_declarator
identifier "expectedOpts"
; ";"
method_declaration (+38 nodes collapsed)
block_comment "/**\n * Parse the arguments according to the specified op"...
method_declaration (+44 nodes collapsed)
method_declaration (+44 nodes collapsed)
block_comment "/**\n * Parse the arguments according to the specified op"...
method_declaration (+179 nodes collapsed)
block_comment "/**\n * Sets the values of Options using the values in <c"...
method_declaration (+328 nodes collapsed)
block_comment "/**\n * Throws a {@link MissingOptionException} if all of"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Throw a {@link MissingArgumentException} if the c"...
method_declaration (+45 nodes collapsed)
block_comment "/**\n * Handle any command line token.\n *\n * @par"...
method_declaration (+227 nodes collapsed)
block_comment "/**\n * Returns true is the token is a valid argument.\n "...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Check if the token is a negative number.\n *\n "...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Tells if the token looks like an option.\n *\n "...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Tells if the token looks like a short option.\n "...
method_declaration
modifiers
private "private"
boolean_type "boolean"
identifier "isShortOption"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "token"
) ")"
block
{ "{"
line_comment "// short options (-S, -SV, -S=V, -SV1=V2, -S1S2)"
if_statement (+37 nodes collapsed)
line_comment "// remove leading \"-\" and \"=value\""
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "pos"
= "="
method_invocation
identifier "token"
. "."
identifier "indexOf"
argument_list
( "("
string_literal
" "\""
string_fragment "="
" "\""
) ")"
; ";"
local_variable_declaration (+33 nodes collapsed)
return_statement all 1:2
return "return" all 1:2
method_invocation all 1:2
identifier "options" all 1:2
. "." all 1:2
identifier "hasShortOption" all 1:2
argument_list all 1:2
( "(" all 1:2
identifier "optName" all 1:2
) ")" all 1:2
; ";" all 1:2
line_comment "// check for several concatenated short options"
} "}"
block_comment "/**\n * Tells if the token looks like a long option.\n "...
method_declaration (+166 nodes collapsed)
block_comment "/**\n * Handles an unknown token. If the token starts wit"...
method_declaration (+96 nodes collapsed)
block_comment "/**\n * Handles the following tokens:\n *\n * --L\n "...
method_declaration (+58 nodes collapsed)
block_comment "/**\n * Handles the following tokens:\n *\n * --L\n "...
method_declaration (+116 nodes collapsed)
block_comment "/**\n * Handles the following tokens:\n *\n * --L=V"...
method_declaration (+214 nodes collapsed)
block_comment "/**\n * Handles the following tokens:\n *\n * -S\n "...
method_declaration (+568 nodes collapsed)
block_comment "/**\n * Search for a prefix that is the long name of an o"...
method_declaration (+115 nodes collapsed)
block_comment "/**\n * Check if the specified token is a Java-like prope"...
method_declaration (+81 nodes collapsed)
method_declaration (+90 nodes collapsed)
block_comment "/**\n * Removes the option or its group from the list of "...
method_declaration (+117 nodes collapsed)
block_comment "/**\n * Breaks <code>token</code> into its constituent pa"...
method_declaration (+182 nodes collapsed)
} "}"