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–199 unchanged (199 lines)
200 * hierarchical manner if they are added to groups. This method can be used
201 * for obtaining the parent option of this option. The result may be
202 * <b>null</b> if this option does not have a parent.
203 *
204 * @return the parent of this option
205 */
206
207 /**
208 * Sets the parent of this option. This method is called when the option is
209 * added to a group. Storing the parent of an option makes it possible to
210 * keep track of hierarchical relations between options. For instance, if an
211 * option is identified while parsing a command line, the group this option
212 * belongs to can also be added to the command line.
213 *
214 * @param parent the parent option
215 */
216}
217

After

…lines 1–199 unchanged (199 lines)
200 * hierarchical manner if they are added to groups. This method can be used
201 * for obtaining the parent option of this option. The result may be
202 * <b>null</b> if this option does not have a parent.
203 *
204 * @return the parent of this option
205 */
206 Option getParent();
207
208 /**
209 * Sets the parent of this option. This method is called when the option is
210 * added to a group. Storing the parent of an option makes it possible to
211 * keep track of hierarchical relations between options. For instance, if an
212 * option is identified while parsing a command line, the group this option
213 * belongs to can also be added to the command line.
214 *
215 * @param parent the parent option
216 */
217 void setParent(Option parent);
218}
219

Before

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
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 "Comparator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ListIterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
block_comment "/**\n * The super type of all options representing a particul"...
interface_declaration
modifiers
public "public"
interface "interface"
identifier "Option"
interface_body
{ "{"
block_comment "/**\n * Processes String arguments into a CommandLine.\n "...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * Adds defaults to a CommandLine.\n *\n * Any"...
method_declaration
void_type "void"
identifier "defaults"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "WriteableCommandLine"
identifier "commandLine"
) ")"
; ";"
block_comment "/**\n * Indicates whether this Option will be able to pro"...
method_declaration
boolean_type "boolean"
identifier "canProcess"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "WriteableCommandLine"
identifier "commandLine"
, ","
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "argument"
) ")"
; ";"
block_comment "/**\n * Indicates whether this Option will be able to pro"...
method_declaration
boolean_type "boolean"
identifier "canProcess"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "WriteableCommandLine"
identifier "commandLine"
, ","
formal_parameter
modifiers
final "final"
type_identifier "ListIterator"
identifier "arguments"
) ")"
; ";"
block_comment "/**\n * Identifies the argument prefixes that should trig"...
method_declaration
type_identifier "Set"
identifier "getTriggers"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Identifies the argument prefixes that should be c"...
method_declaration
type_identifier "Set"
identifier "getPrefixes"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Checks that the supplied CommandLine is valid wit"...
method_declaration
void_type "void"
identifier "validate"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "WriteableCommandLine"
identifier "commandLine"
) ")"
throws
throws "throws"
type_identifier "OptionException"
; ";"
block_comment "/**\n * Builds up a list of HelpLineImpl instances to be "...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Appends usage information to the specified String"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * The preferred name of an option is used for gener"...
method_declaration
type_identifier "String"
identifier "getPreferredName"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Returns a description of the option. This string "...
method_declaration
type_identifier "String"
identifier "getDescription"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Returns the id of the option. This can be used i"...
method_declaration
integral_type
int "int"
identifier "getId"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Recursively searches for an option with the suppl"...
method_declaration
type_identifier "Option"
identifier "findOption"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "trigger"
) ")"
; ";"
block_comment "/**\n * Indicates whether this option is required to be p"...
method_declaration
boolean_type "boolean"
identifier "isRequired"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Returns the parent of this option. Options can be"...
block_comment "/**\n * Sets the parent of this option. This method is ca"...
} "}"

After

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
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 "Comparator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ListIterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
block_comment "/**\n * The super type of all options representing a particul"...
interface_declaration
modifiers
public "public"
interface "interface"
identifier "Option"
interface_body
{ "{"
block_comment "/**\n * Processes String arguments into a CommandLine.\n "...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * Adds defaults to a CommandLine.\n *\n * Any"...
method_declaration
void_type "void"
identifier "defaults"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "WriteableCommandLine"
identifier "commandLine"
) ")"
; ";"
block_comment "/**\n * Indicates whether this Option will be able to pro"...
method_declaration
boolean_type "boolean"
identifier "canProcess"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "WriteableCommandLine"
identifier "commandLine"
, ","
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "argument"
) ")"
; ";"
block_comment "/**\n * Indicates whether this Option will be able to pro"...
method_declaration
boolean_type "boolean"
identifier "canProcess"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "WriteableCommandLine"
identifier "commandLine"
, ","
formal_parameter
modifiers
final "final"
type_identifier "ListIterator"
identifier "arguments"
) ")"
; ";"
block_comment "/**\n * Identifies the argument prefixes that should trig"...
method_declaration
type_identifier "Set"
identifier "getTriggers"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Identifies the argument prefixes that should be c"...
method_declaration
type_identifier "Set"
identifier "getPrefixes"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Checks that the supplied CommandLine is valid wit"...
method_declaration
void_type "void"
identifier "validate"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "WriteableCommandLine"
identifier "commandLine"
) ")"
throws
throws "throws"
type_identifier "OptionException"
; ";"
block_comment "/**\n * Builds up a list of HelpLineImpl instances to be "...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Appends usage information to the specified String"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * The preferred name of an option is used for gener"...
method_declaration
type_identifier "String"
identifier "getPreferredName"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Returns a description of the option. This string "...
method_declaration
type_identifier "String"
identifier "getDescription"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Returns the id of the option. This can be used i"...
method_declaration
integral_type
int "int"
identifier "getId"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Recursively searches for an option with the suppl"...
method_declaration
type_identifier "Option"
identifier "findOption"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "String"
identifier "trigger"
) ")"
; ";"
block_comment "/**\n * Indicates whether this option is required to be p"...
method_declaration
boolean_type "boolean"
identifier "isRequired"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Returns the parent of this option. Options can be"...
method_declaration
type_identifier "Option"
identifier "getParent"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Sets the parent of this option. This method is ca"...
method_declaration
void_type "void"
identifier "setParent"
formal_parameters
( "("
formal_parameter
type_identifier "Option"
identifier "parent"
) ")"
; ";"
} "}"