class_body
{ "{"
line_comment "// ---------------------------------------------------------"...
block_comment "/** default number of characters per line */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "DEFAULT_WIDTH"
= "="
decimal_integer_literal "74"
; ";"
block_comment "/** default padding to the left of each line */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "DEFAULT_LEFT_PAD"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/**\n * the number of characters of padding to be prefixe"...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "DEFAULT_DESC_PAD"
= "="
decimal_integer_literal "3"
; ";"
block_comment "/** the string to display at the begining of the usage state"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "DEFAULT_SYNTAX_PREFIX"
= "="
string_literal
" "\""
string_fragment "usage: "
" "\""
; ";"
block_comment "/** default prefix for shortOpts */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "DEFAULT_OPT_PREFIX"
= "="
string_literal
" "\""
string_fragment "-"
" "\""
; ";"
block_comment "/** default prefix for long Option */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "DEFAULT_LONG_OPT_PREFIX"
= "="
string_literal
" "\""
string_fragment "--"
" "\""
; ";"
block_comment "/** default name for an argument */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "DEFAULT_ARG_NAME"
= "="
string_literal
" "\""
string_fragment "arg"
" "\""
; ";"
line_comment "// ---------------------------------------------------------"...
block_comment "/**\n * number of characters per line\n *\n * @depr"...
field_declaration
modifiers
public "public"
integral_type
int "int"
variable_declarator
identifier "defaultWidth"
= "="
identifier "DEFAULT_WIDTH"
; ";"
block_comment "/**\n * amount of padding to the left of each line\n *"...
field_declaration
modifiers
public "public"
integral_type
int "int"
variable_declarator
identifier "defaultLeftPad"
= "="
identifier "DEFAULT_LEFT_PAD"
; ";"
block_comment "/**\n * the number of characters of padding to be prefixe"...
field_declaration
modifiers
public "public"
integral_type
int "int"
variable_declarator
identifier "defaultDescPad"
= "="
identifier "DEFAULT_DESC_PAD"
; ";"
block_comment "/**\n * the string to display at the begining of the usag"...
field_declaration
modifiers
public "public"
type_identifier "String"
variable_declarator
identifier "defaultSyntaxPrefix"
= "="
identifier "DEFAULT_SYNTAX_PREFIX"
; ";"
block_comment "/**\n * the new line string\n *\n * @deprecated Sco"...
field_declaration
modifiers
public "public"
type_identifier "String"
variable_declarator
identifier "defaultNewLine"
= "="
method_invocation
identifier "System"
. "."
identifier "getProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "line.separator"
" "\""
) ")"
; ";"
block_comment "/**\n * the shortOpt prefix\n *\n * @deprecated Sco"...
field_declaration
modifiers
public "public"
type_identifier "String"
variable_declarator
identifier "defaultOptPrefix"
= "="
identifier "DEFAULT_OPT_PREFIX"
; ";"
block_comment "/**\n * the long Opt prefix\n *\n * @deprecated Sco"...
field_declaration
modifiers
public "public"
type_identifier "String"
variable_declarator
identifier "defaultLongOptPrefix"
= "="
identifier "DEFAULT_LONG_OPT_PREFIX"
; ";"
block_comment "/**\n * the name of the argument\n *\n * @deprecate"...
field_declaration
modifiers
public "public"
type_identifier "String"
variable_declarator
identifier "defaultArgName"
= "="
identifier "DEFAULT_ARG_NAME"
; ";"
block_comment "/**\n * Comparator used to sort the options when they out"...
field_declaration
modifiers
protected "protected"
type_identifier "Comparator"
variable_declarator
identifier "optionComparator"
= "="
object_creation_expression
new "new"
type_identifier "OptionComparator"
argument_list
( "("
) ")"
; ";"
block_comment "/**\n * Sets the 'width'.\n *\n * @param width the "...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Returns the 'width'.\n *\n * @return the 'w"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getWidth"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "defaultWidth"
; ";"
} "}"
block_comment "/**\n * Sets the 'leftPadding'.\n *\n * @param padd"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Returns the 'leftPadding'.\n *\n * @return "...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getLeftPadding"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "defaultLeftPad"
; ";"
} "}"
block_comment "/**\n * Sets the 'descPadding'.\n *\n * @param padd"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Returns the 'descPadding'.\n *\n * @return "...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getDescPadding"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "defaultDescPad"
; ";"
} "}"
block_comment "/**\n * Sets the 'syntaxPrefix'.\n *\n * @param pre"...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * Returns the 'syntaxPrefix'.\n *\n * @return"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getSyntaxPrefix"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "defaultSyntaxPrefix"
; ";"
} "}"
block_comment "/**\n * Sets the 'newLine'.\n *\n * @param newline "...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * Returns the 'newLine'.\n *\n * @return the "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getNewLine"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "defaultNewLine"
; ";"
} "}"
block_comment "/**\n * Sets the 'optPrefix'.\n *\n * @param prefix"...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * Returns the 'optPrefix'.\n *\n * @return th"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getOptPrefix"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "defaultOptPrefix"
; ";"
} "}"
block_comment "/**\n * Sets the 'longOptPrefix'.\n *\n * @param pr"...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * Returns the 'longOptPrefix'.\n *\n * @retur"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLongOptPrefix"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "defaultLongOptPrefix"
; ";"
} "}"
block_comment "/**\n * Sets the 'argName'.\n *\n * @param name the"...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * Returns the 'argName'.\n *\n * @return the "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getArgName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "defaultArgName"
; ";"
} "}"
block_comment "/**\n * Comparator used to sort the options when they out"...
method_declaration
modifiers
public "public"
type_identifier "Comparator"
identifier "getOptionComparator"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "optionComparator"
; ";"
} "}"
block_comment "/**\n * Set the comparator used to sort the options when "...
method_declaration (+53 nodes collapsed)
line_comment "// ---------------------------------------------------------"...
block_comment "/**\n * <p>Print the help for <code>options</code> with t"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * <p>Print the help for <code>options</code> with t"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * <p>Print the help for <code>options</code> with t"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * <p>Print the help for <code>options</code> with t"...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * <p>Print the help for <code>options</code> with t"...
method_declaration (+49 nodes collapsed)
block_comment "/**\n * <p>Print the help for <code>options</code> with t"...
method_declaration (+84 nodes collapsed)
block_comment "/**\n * <p>Print the help for <code>options</code> with t"...
method_declaration (+69 nodes collapsed)
block_comment "/**\n * <p>Print the help for <code>options</code> with t"...
method_declaration (+243 nodes collapsed)
block_comment "/**\n * <p>Prints the usage statement for the specified a"...
method_declaration (+319 nodes collapsed)
block_comment "/**\n * Appends the usage clause for an OptionGroup to a "...
method_declaration (+197 nodes collapsed)
block_comment "/**\n * Appends the usage clause for an Option to a Strin"...
method_declaration
modifiers
private "private"
static "static"
void_type "void"
identifier "appendOption"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "StringBuffer"
identifier "buff"
, ","
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
, ","
formal_parameter
modifiers
final "final"
boolean_type "boolean"
identifier "required"
) ")"
block
{ "{"
if_statement (+24 nodes collapsed)
if_statement (+74 nodes collapsed)
line_comment "// if the Option has a value"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
method_invocation
identifier "option"
. "."
identifier "hasArg"
argument_list
( "("
) ")"
&& "&&"
parenthesized_expression
( "("
binary_expression
method_invocation
identifier "option"
. "."
identifier "getArgName"
argument_list
( "("
) ")"
!= "!="
null_literal "null"
) ")"
) ")"
block (+39 nodes collapsed)
line_comment "// if the Option is not a required option"
if_statement (+24 nodes collapsed)
} "}"
block_comment "/**\n * <p>Print the cmdLineSyntax to the specified write"...
method_declaration (+67 nodes collapsed)
block_comment "/**\n * <p>Print the help for the specified Options to th"...
method_declaration (+77 nodes collapsed)
block_comment "/**\n * <p>Print the specified text to the specified Prin"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Print the specified text to the specified Prin"...
method_declaration (+77 nodes collapsed)
line_comment "// ---------------------------------------------------------"...
block_comment "/**\n * <p>Render the specified Options and return the re"...
method_declaration (+657 nodes collapsed)
block_comment "/**\n * <p>Render the specified text and return the rende"...
method_declaration (+230 nodes collapsed)
block_comment "/**\n * Finds the next text wrap position after <code>sta"...
method_declaration (+340 nodes collapsed)
block_comment "/**\n * <p>Return a String of padding of length <code>len"...
method_declaration (+71 nodes collapsed)
block_comment "/**\n * <p>Remove the trailing whitespace from the specif"...
method_declaration (+115 nodes collapsed)
line_comment "// ------------------------------------------------------ Pa"...
line_comment "// ---------------------------------------------------------"...
line_comment "// ---------------------------------------------------------"...
block_comment "/**\n * <p>This class implements the <code>Comparator</co"...
class_declaration (+78 nodes collapsed)
} "}"