| Modifier and Type | Class and Description |
|---|---|
| public class | OptionDescriptor.
Represents an option descriptor builder. |
| Modifier and Type | Field and Description |
|---|---|
| private final OptionCategory | |
| private final boolean | |
| private final String | |
| private static final OptionDescriptor | |
| private final String | |
| private final OptionKey | |
| private final String | |
| private final OptionStability | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | OptionDescriptor(OptionKey<?> key, String name, String help, OptionCategory category, OptionStability stability, boolean deprecated, String deprecationMessage, String usageSyntax)
|
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public OptionCategory | |
| public String | |
| public String | |
| public OptionKey | |
| public String | |
| public OptionStability | |
| public String | Returns: null if no usage syntax should be used, the usage syntax otherwiseSpecifies a human-readable syntax describing the accepted values for this option. |
| public int | |
| public boolean | |
| public boolean | |
| public static <T> OptionDescriptor. | |
| public String |
| category | back to summary |
|---|---|
| private final OptionCategory category | |
| deprecated | back to summary |
|---|---|
| private final boolean deprecated | |
| deprecationMessage | back to summary |
|---|---|
| private final String deprecationMessage | |
| EMPTY | back to summary |
|---|---|
| private static final OptionDescriptor EMPTY | |
| help | back to summary |
|---|---|
| private final String help | |
| key | back to summary |
|---|---|
| private final OptionKey<?> key | |
| name | back to summary |
|---|---|
| private final String name | |
| stability | back to summary |
|---|---|
| private final OptionStability stability | |
| usageSyntax | back to summary |
|---|---|
| private final String usageSyntax | |
| OptionDescriptor | back to summary |
|---|---|
| pack-priv OptionDescriptor(OptionKey<?> key, String name, String help, OptionCategory category, OptionStability stability, boolean deprecated, String deprecationMessage, String usageSyntax) | |
| enumUsageSyntax | back to summary |
|---|---|
private static String enumUsageSyntax(Object defaultValue, Class<?> aClass)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCategory | back to summary |
|---|---|
| public OptionCategory getCategory() Returns the user category of this option.
| |
| getDeprecationMessage | back to summary |
|---|---|
| public String getDeprecationMessage() Returns the deprecation reason and the recommended fix. For newlines, use
| |
| getHelp | back to summary |
|---|---|
| public String getHelp() Returns a human-readable description on how to use the option. For newlines, use
| |
| getKey | back to summary |
|---|---|
| public OptionKey Returns the key for this option.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of the option that this descriptor represents.
| |
| getStability | back to summary |
|---|---|
| public OptionStability getStability() Returns the stability of this option.
| |
| getUsageSyntax | back to summary |
|---|---|
| public String getUsageSyntax() Specifies a human-readable syntax describing the accepted values for this option.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isDeprecated | back to summary |
|---|---|
| public boolean isDeprecated() Returns
| |
| isOptionMap | back to summary |
|---|---|
| public boolean isOptionMap() Returns
| |
| newBuilder | back to summary |
|---|---|
| public static <T> OptionDescriptor. Creates a new option descriptor builder by key. The option group and name is inferred by the key.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private OptionCategory | |
| private boolean | |
| private String | |
| private String | |
| private final OptionKey | |
| private final String | |
| private OptionStability | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public OptionDescriptor | |
| public OptionDescriptor. | |
| public OptionDescriptor. | |
| public OptionDescriptor. | deprecationMessage(String deprecationMessage)
Specifies a human-readable deprecation reason and the recommended fix. |
| public OptionDescriptor. | |
| public OptionDescriptor. | |
| public OptionDescriptor. | usageSyntax(String usageSyntax)
Specifies a human-readable syntax describing the accepted values for this option. |
| category | back to summary |
|---|---|
| private OptionCategory category | |
| deprecated | back to summary |
|---|---|
| private boolean deprecated | |
| deprecationMessage | back to summary |
|---|---|
| private String deprecationMessage | |
| help | back to summary |
|---|---|
| private String help | |
| key | back to summary |
|---|---|
| private final OptionKey<?> key | |
| name | back to summary |
|---|---|
| private final String name | |
| stability | back to summary |
|---|---|
| private OptionStability stability | |
| usageSyntax | back to summary |
|---|---|
| private String usageSyntax | |
| Builder | back to summary |
|---|---|
| pack-priv Builder(OptionKey<?> key, String name) | |
| build | back to summary |
|---|---|
| public OptionDescriptor build() Builds and returns a new option descriptor.
| |
| category | back to summary |
|---|---|
| public OptionDescriptor. Defines the user category for this option. The default value is
| |
| deprecated | back to summary |
|---|---|
| public OptionDescriptor. Defines if this option is deprecated. The default value for deprecated is
| |
| deprecationMessage | back to summary |
|---|---|
| public OptionDescriptor. Specifies a human-readable deprecation reason and the recommended fix.
| |
| help | back to summary |
|---|---|
| public OptionDescriptor. Specifies a human-readable description on how to use the option.
| |
| stability | back to summary |
|---|---|
| public OptionDescriptor. Defines the stability of this option. The default value is
| |
| usageSyntax | back to summary |
|---|---|
| public OptionDescriptor. Specifies a human-readable syntax describing the accepted values for this option.
| |