class_body
{ "{"
block_comment "/** commandline instance */"
field_declaration
modifiers
protected "protected"
type_identifier "CommandLine"
variable_declarator
identifier "cmd"
; ";"
block_comment "/** current Options */"
field_declaration
modifiers
private "private"
type_identifier "Options"
variable_declarator
identifier "options"
; ";"
block_comment "/** list of required options strings */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "requiredOptions"
; ";"
method_declaration (+46 nodes collapsed)
method_declaration
modifiers
protected "protected"
type_identifier "Options"
identifier "getOptions"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "options"
; ";"
} "}"
method_declaration
modifiers
protected "protected"
type_identifier "List"
identifier "getRequiredOptions"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "requiredOptions"
; ";"
} "}"
block_comment "/**\n * Subclasses must implement this method to reduce\n "...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * Parses the specified <code>arguments</code> based"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Parse the arguments according to the specified op"...
method_declaration (+44 nodes collapsed)
block_comment "/**\n * Parses the specified <code>arguments</code>\n "...
method_declaration (+44 nodes collapsed)
block_comment "/**\n * Parse the arguments according to the specified op"...
method_declaration (+555 nodes collapsed)
block_comment "/**\n * Sets the values of Options using the values in <c"...
method_declaration
modifiers
protected "protected"
void_type "void"
identifier "processProperties"
formal_parameters
( "("
formal_parameter
type_identifier "Properties"
identifier "properties"
) ")"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "properties"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
; ";"
} "}"
for_statement
for "for"
( "("
local_variable_declaration
type_identifier "Enumeration"
variable_declarator
identifier "e"
= "="
method_invocation
identifier "properties"
. "."
identifier "propertyNames"
argument_list
( "("
) ")"
; ";"
method_invocation
identifier "e"
. "."
identifier "hasMoreElements"
argument_list
( "("
) ")"
; ";"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "String"
variable_declarator
identifier "option"
= "="
method_invocation
method_invocation
identifier "e"
. "."
identifier "nextElement"
argument_list
( "("
) ")"
. "."
identifier "toString"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
method_invocation
identifier "cmd"
. "."
identifier "hasOption"
argument_list
( "("
identifier "option"
) ")"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "Option"
variable_declarator
identifier "opt"
= "="
method_invocation
method_invocation
identifier "getOptions"
argument_list
( "("
) ")"
. "."
identifier "getOption"
argument_list
( "("
identifier "option"
) ")"
; ";"
line_comment "// get the value from the properties instance"
local_variable_declaration
type_identifier "String"
variable_declarator
identifier "value"
= "="
method_invocation
identifier "properties"
. "."
identifier "getProperty"
argument_list
( "("
identifier "option"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
method_invocation
identifier "opt"
. "."
identifier "hasArg"
argument_list
( "("
) ")"
) ")"
block (+63 nodes collapsed)
else "else"
if_statement
if "if"
parenthesized_expression (+45 nodes collapsed)
block
{ "{"
line_comment "// if the value is not yes, true or 1 then don't add the"
line_comment "// option to the CommandLine"
break_statement
break "break"
; ";"
} "}"
expression_statement
method_invocation
identifier "cmd"
. "."
identifier "addOption"
argument_list
( "("
identifier "opt"
) ")"
; ";"
} "}"
} "}"
} "}"
block_comment "/**\n * Throws a {@link MissingOptionException} if all of"...
method_declaration (+50 nodes collapsed)
block_comment "/**\n * <p>Process the argument values for the specified "...
method_declaration (+185 nodes collapsed)
block_comment "/**\n * Process the Option specified by <code>arg</code> "...
method_declaration (+254 nodes collapsed)
} "}"