public static enum Option.Type extends Enum<Option.Type>
| Enum Constant and Description |
|---|
NO_ARGUMENT
The option never has an argument (e.g.
|
OPTIONAL_ARGUMENT
The option could have an argument (-o -p _or_ -o argument -p)
|
REQUIRED_ARGUMENT
The option always has an argument (-o argument)
|
| Modifier and Type | Method and Description |
|---|---|
static Option.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Option.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Option.Type NO_ARGUMENT
public static final Option.Type REQUIRED_ARGUMENT
public static final Option.Type OPTIONAL_ARGUMENT
public static Option.Type[] values()
for (Option.Type c : Option.Type.values()) System.out.println(c);
public static Option.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015. All Rights Reserved.