class_body
{ "{"
block_comment "/** The serial version UID. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1L"
; ";"
block_comment "/** constant that specifies the number of argument values ha"...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "UNINITIALIZED"
= "="
unary_expression
- "-"
decimal_integer_literal "1"
; ";"
block_comment "/** constant that specifies the number of argument values is"...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "UNLIMITED_VALUES"
= "="
unary_expression
- "-"
decimal_integer_literal "2"
; ";"
block_comment "/** the name of the option */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "opt"
; ";"
block_comment "/** the long representation of the option */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "longOpt"
; ";"
block_comment "/** the name of the argument for this option */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "argName"
= "="
string_literal
" "\""
string_fragment "arg"
" "\""
; ";"
block_comment "/** description of the option */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "description"
; ";"
block_comment "/** specifies whether this option is required to be present "...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "required"
; ";"
block_comment "/** specifies whether the argument value of this Option is o"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "optionalArg"
; ";"
block_comment "/** the number of argument values this option can have */"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "numberOfArgs"
= "="
identifier "UNINITIALIZED"
; ";"
block_comment "/** the type of this Option */"
field_declaration
modifiers
private "private"
type_identifier "Object"
variable_declarator
identifier "type"
; ";"
block_comment "/** the list of argument values **/"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "values"
= "="
object_creation_expression
new "new"
type_identifier "ArrayList"
argument_list
( "("
) ")"
; ";"
block_comment "/** the character that is the value separator */"
field_declaration
modifiers
private "private"
integral_type
char "char"
variable_declarator
identifier "valuesep"
; ";"
block_comment "/**\n * Creates an Option using the specified parameters."...
constructor_declaration (+33 nodes collapsed)
block_comment "/**\n * Creates an Option using the specified parameters."...
constructor_declaration (+37 nodes collapsed)
block_comment "/**\n * Creates an Option using the specified parameters."...
constructor_declaration (+85 nodes collapsed)
block_comment "/**\n * Returns the id of this Option. This is only set "...
method_declaration (+27 nodes collapsed)
block_comment "/**\n * Returns the 'unique' Option identifier.\n * \n "...
method_declaration (+30 nodes collapsed)
block_comment "/** \n * Retrieve the name of this Option.\n *\n * "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getOpt"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "opt"
; ";"
} "}"
block_comment "/**\n * Retrieve the type of this Option.\n * \n * "...
method_declaration
modifiers
public "public"
type_identifier "Object"
identifier "getType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "type"
; ";"
} "}"
block_comment "/**\n * Sets the type of this Option.\n *\n * @para"...
method_declaration (+23 nodes collapsed)
block_comment "/** \n * Retrieve the long name of this Option.\n *\n "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLongOpt"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "longOpt"
; ";"
} "}"
block_comment "/**\n * Sets the long name of this Option.\n *\n * "...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * Sets whether this Option can have an optional arg"...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * @return whether this Option can have an optional "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "hasOptionalArg"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "optionalArg"
; ";"
} "}"
block_comment "/** \n * Query to see if this Option has a long name\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "hasLongOpt"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "longOpt"
!= "!="
null_literal "null"
; ";"
} "}"
block_comment "/** \n * Query to see if this Option requires an argument"...
method_declaration (+24 nodes collapsed)
block_comment "/** \n * Retrieve the self-documenting description of thi"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getDescription"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "description"
; ";"
} "}"
block_comment "/**\n * Sets the self-documenting description of this Opt"...
method_declaration (+23 nodes collapsed)
block_comment "/** \n * Query to see if this Option requires an argument"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isRequired"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "required"
; ";"
} "}"
block_comment "/**\n * Sets whether this Option is mandatory.\n *\n "...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * Sets the display name for the argument value.\n "...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * Gets the display name for the argument value.\n "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getArgName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "argName"
; ";"
} "}"
block_comment "/**\n * Returns whether the display name for the argument"...
method_declaration (+30 nodes collapsed)
block_comment "/** \n * Query to see if this Option can take many values"...
method_declaration (+24 nodes collapsed)
block_comment "/** \n * Sets the number of argument values this Option c"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Sets the value separator. For example if the arg"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Returns the value separator character.\n *\n "...
method_declaration
modifiers
public "public"
integral_type
char "char"
identifier "getValueSeparator"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "valuesep"
; ";"
} "}"
block_comment "/**\n * Return whether this Option has specified a value "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "hasValueSeparator"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "valuesep"
> ">"
decimal_integer_literal "0"
; ";"
} "}"
block_comment "/** \n * Returns the number of argument values this Optio"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getArgs"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "numberOfArgs"
; ";"
} "}"
block_comment "/**\n * Adds the specified value to this Option.\n * \n"...
method_declaration (+51 nodes collapsed)
block_comment "/**\n * Processes the value. If this Option has a value "...
method_declaration (+158 nodes collapsed)
block_comment "/**\n * Add the value to this Option. If the number of a"...
method_declaration (+53 nodes collapsed)
block_comment "/**\n * Returns the specified value of this Option or \n "...
method_declaration (+35 nodes collapsed)
block_comment "/**\n * Returns the specified value of this Option or \n "...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Returns the value/first value of this Option or t"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Return the values of this Option as a String arra"...
method_declaration (+55 nodes collapsed)
block_comment "/**\n * @return the values of this Option as a List\n "...
method_declaration
modifiers
public "public"
type_identifier "List"
identifier "getValuesList"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "values"
; ";"
} "}"
block_comment "/** \n * Dump state, suitable for debugging.\n *\n "...
method_declaration (+216 nodes collapsed)
block_comment "/**\n * Returns whether this Option has any values.\n "...
method_declaration (+21 nodes collapsed)
method_declaration (+155 nodes collapsed)
method_declaration (+71 nodes collapsed)
block_comment "/**\n * A rather odd clone method - due to incorrect code"...
method_declaration (+85 nodes collapsed)
block_comment "/**\n * Clear the Option values. After a parse is complet"...
method_declaration
void_type "void"
identifier "clearValues"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "values"
. "."
identifier "clear"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/**\n * This method is not intended to be used. It was a "...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Tells if the option can accept more arguments.\n "...
method_declaration (+55 nodes collapsed)
block_comment "/**\n * Tells if the option requires more arguments to be"...
method_declaration (+59 nodes collapsed)
} "}"