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–95 unchanged (95 lines)
96
97 /**
98 * Returns the option that is currently processed.
99 *
100 * @return the current option
101 */
102
103 /**
104 * Sets the current option. This method is called by concrete option
105 * implementations during command line processing. It enables the command
106 * line to keep track about the option that is currently processed.
107 *
108 * @param currentOption the new current option
109 */
110}
111

After

…lines 1–95 unchanged (95 lines)
96
97 /**
98 * Returns the option that is currently processed.
99 *
100 * @return the current option
101 */
102 Option getCurrentOption();
103
104 /**
105 * Sets the current option. This method is called by concrete option
106 * implementations during command line processing. It enables the command
107 * line to keep track about the option that is currently processed.
108 *
109 * @param currentOption the new current option
110 */
111 void setCurrentOption(Option currentOption);
112}
113

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"...
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 (+24 nodes collapsed)
block_comment "/**\n * Adds a property value to the default property set"...
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"
) ")"
; ";"
block_comment "/**\n * Returns the option that is currently processed.\n "...
block_comment "/**\n * Sets the current option. This method is called by"...
} "}"

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 (+24 nodes collapsed)
block_comment "/**\n * Adds a property value to the default property set"...
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"
) ")"
; ";"
block_comment "/**\n * Returns the option that is currently processed.\n "...
method_declaration
type_identifier "Option"
identifier "getCurrentOption"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Sets the current option. This method is called by"...
method_declaration
void_type "void"
identifier "setCurrentOption"
formal_parameters
( "("
formal_parameter
type_identifier "Option"
identifier "currentOption"
) ")"
; ";"
} "}"