Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–40 unchanged (40 lines)
41 * specified Option, this doesn't return any values supplied
42 * programmatically as defaults.
43 *
44 * @param option the Option associated with the values
45 * @return a list of values or an empty List if none are found
46 */
47
48 /**
49 * Sets the default values for an Option in the CommandLine
50 * @param option the Option to add to
51 * @param defaultValues the defaults for the option
52 */
53 void setDefaultValues(final Option option, final List defaultValues);
…lines 54–86 unchanged (33 lines)

After

…lines 1–40 unchanged (40 lines)
41 * specified Option, this doesn't return any values supplied
42 * programmatically as defaults.
43 *
44 * @param option the Option associated with the values
45 * @return a list of values or an empty List if none are found
46 */
47 List getUndefaultedValues(final Option option);
48
49 /**
50 * Sets the default values for an Option in the CommandLine
51 * @param option the Option to add to
52 * @param defaultValues the defaults for the option
53 */
…lines 54–87 unchanged (34 lines)

Before

program
block_comment "/**\n * Licensed to the Apache Software Foundation (ASF) unde"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "cli2"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
block_comment "/**\n * A CommandLine that detected values and options can be"...
interface_declaration
modifiers
public "public"
interface "interface"
identifier "WriteableCommandLine"
extends_interfaces
extends "extends"
type_list
type_identifier "CommandLine"
interface_body
{ "{"
block_comment "/**\n * Adds an Option to the CommandLine\n * @param o"...
method_declaration
void_type "void"
identifier "addOption"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
) ")"
; ";"
block_comment "/**\n * Adds a value to an Option in the CommandLine.\n "...
method_declaration
void_type "void"
identifier "addValue"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
, ","
formal_parameter
modifiers
final "final"
type_identifier "Object"
identifier "value"
) ")"
; ";"
block_comment "/**\n * Retrieves the Argument values specified on the co"...
block_comment "/**\n * Sets the default values for an Option in the Comm"...
method_declaration
void_type "void"
identifier "setDefaultValues"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
, ","
formal_parameter
modifiers
final "final"
type_identifier "List"
identifier "defaultValues"
) ")"
; ";"
block_comment "/**\n * Adds a switch value to an Option in the CommandLi"...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * Sets the default state for a Switch in the Comman"...
method_declaration
void_type "void"
identifier "setDefaultSwitch"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
, ","
formal_parameter
modifiers
final "final"
type_identifier "Boolean"
identifier "defaultSwitch"
) ")"
; ";"
block_comment "/**\n * Adds a property value to a name in the CommandLin"...
method_declaration
void_type "void"
identifier "addProperty"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "property"
, ","
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "value"
) ")"
; ";"
block_comment "/**\n * Detects whether the argument looks like an Option"...
method_declaration
boolean_type "boolean"
identifier "looksLikeOption"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "argument"
) ")"
; ";"
} "}"

After

program
block_comment "/**\n * Licensed to the Apache Software Foundation (ASF) unde"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "cli2"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
block_comment "/**\n * A CommandLine that detected values and options can be"...
interface_declaration
modifiers
public "public"
interface "interface"
identifier "WriteableCommandLine"
extends_interfaces
extends "extends"
type_list
type_identifier "CommandLine"
interface_body
{ "{"
block_comment "/**\n * Adds an Option to the CommandLine\n * @param o"...
method_declaration
void_type "void"
identifier "addOption"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
) ")"
; ";"
block_comment "/**\n * Adds a value to an Option in the CommandLine.\n "...
method_declaration
void_type "void"
identifier "addValue"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
, ","
formal_parameter
modifiers
final "final"
type_identifier "Object"
identifier "value"
) ")"
; ";"
block_comment "/**\n * Retrieves the Argument values specified on the co"...
method_declaration
type_identifier "List"
identifier "getUndefaultedValues"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
) ")"
; ";"
block_comment "/**\n * Sets the default values for an Option in the Comm"...
method_declaration
void_type "void"
identifier "setDefaultValues"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
, ","
formal_parameter
modifiers
final "final"
type_identifier "List"
identifier "defaultValues"
) ")"
; ";"
block_comment "/**\n * Adds a switch value to an Option in the CommandLi"...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * Sets the default state for a Switch in the Comman"...
method_declaration
void_type "void"
identifier "setDefaultSwitch"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Option"
identifier "option"
, ","
formal_parameter
modifiers
final "final"
type_identifier "Boolean"
identifier "defaultSwitch"
) ")"
; ";"
block_comment "/**\n * Adds a property value to a name in the CommandLin"...
method_declaration
void_type "void"
identifier "addProperty"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "property"
, ","
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "value"
) ")"
; ";"
block_comment "/**\n * Detects whether the argument looks like an Option"...
method_declaration
boolean_type "boolean"
identifier "looksLikeOption"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "argument"
) ")"
; ";"
} "}"