Modifier and Type | Field and Description |
---|---|
static Option |
BALANCE_CURLY_BRACES |
static Option |
BALANCE_PARENTHESES |
static Option |
BALANCE_SQUARE_BRACKETS |
static Option |
DEFAULT_LANGUAGE |
static Option |
FAIL_ON_DUPLICATION |
static Option |
IGNORE_BLOCKS |
static Option |
IGNORE_CHARACTER_CASE |
static Option |
IGNORE_CHARACTERS |
static Option |
IGNORE_CURLY_BRACES |
static Option |
IGNORE_IDENTIFIER_CASE |
static Option |
IGNORE_IDENTIFIERS |
static Option |
IGNORE_LITERALS |
static Option |
IGNORE_MODIFIERS |
static Option |
IGNORE_NUMBERS |
static Option |
IGNORE_OVERLAPPING_BLOCKS |
static Option |
IGNORE_REGIONS |
static Option |
IGNORE_STRING_CASE |
static Option |
IGNORE_STRINGS |
static Option |
IGNORE_SUBTYPE_NAMES |
static Option |
IGNORE_VARIABLE_NAMES |
static Option |
LANGUAGE |
static Option |
REPORT_DUPLICATE_TEXT |
static Option |
THRESHOLD |
Constructor and Description |
---|
Option(java.lang.String name,
java.lang.String parameters,
java.lang.String description)
Constructor.
|
Option(java.lang.String name,
java.lang.String parameters,
java.lang.String description,
boolean multiValued)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Option other) |
java.lang.String |
getDescription()
Obtains a description of the option and how it affects overall behaviour.
|
java.lang.String |
getName()
Obtains the name of the option.
|
java.lang.String |
getParameters()
Obtains a printable description of the possible parameters to the option.
|
boolean |
isMultiValued() |
static boolean |
isValidOption(java.lang.String name)
Determines if a specified option is valid or not.
|
java.lang.String |
toString() |
static Option |
valueOf(java.lang.String name)
Obtains an option by name.
|
static java.util.SortedSet<Option> |
values()
Obtains the set of all valid options.
|
public static final Option LANGUAGE
public static final Option DEFAULT_LANGUAGE
public static final Option THRESHOLD
public static final Option FAIL_ON_DUPLICATION
public static final Option BALANCE_CURLY_BRACES
public static final Option BALANCE_PARENTHESES
public static final Option BALANCE_SQUARE_BRACKETS
public static final Option IGNORE_CURLY_BRACES
public static final Option IGNORE_MODIFIERS
public static final Option IGNORE_NUMBERS
public static final Option IGNORE_STRINGS
public static final Option IGNORE_STRING_CASE
public static final Option IGNORE_CHARACTER_CASE
public static final Option IGNORE_SUBTYPE_NAMES
public static final Option IGNORE_CHARACTERS
public static final Option IGNORE_LITERALS
public static final Option IGNORE_REGIONS
public static final Option IGNORE_IDENTIFIER_CASE
public static final Option IGNORE_VARIABLE_NAMES
public static final Option IGNORE_IDENTIFIERS
public static final Option IGNORE_BLOCKS
public static final Option REPORT_DUPLICATE_TEXT
public static final Option IGNORE_OVERLAPPING_BLOCKS
public Option(java.lang.String name, java.lang.String parameters, java.lang.String description)
name
- The name of the option.parameters
- Printable description of the possible parameters.description
- Description of the option and how it affects overall behaviour.public Option(java.lang.String name, java.lang.String parameters, java.lang.String description, boolean multiValued)
name
- The name of the option.parameters
- Printable description of the possible parameters.description
- Description of the option and how it affects overall behaviour.multiValued
- Allow multiple instances.public java.lang.String getName()
public java.lang.String getParameters()
public java.lang.String getDescription()
public int compareTo(Option other)
compareTo
in interface java.lang.Comparable<Option>
public static java.util.SortedSet<Option> values()
public static boolean isValidOption(java.lang.String name)
name
- The name of the option to check for.public boolean isMultiValued()
public static Option valueOf(java.lang.String name)
name
- The name of the option.public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2003-2018 Simon Harris. All rights reserved.