public static enum Config.Keys extends Enum<Config.Keys>
Each option is characterized by its key name,
which is the name that can be used in grammar descriptions to
specify the option's value, and by a parser function
used to interpret the associated string value. The parser function
must either return an object of a type suitable for the option,
or must throw an IllegalArgumentException
.
Enum Constant and Description |
---|
ClassAnnotations |
Positions |
TokenAnnotations |
Modifier and Type | Field and Description |
---|---|
Object |
defaultValue
Default value of the option associated to that key
|
static Map<String,Config.Keys> |
fromName |
String |
key
Name of the key
|
Function<String,Object> |
parser
Parser function for the option value
|
Config.Relevance |
relevance
Relevance of the option associated to that key
|
Modifier and Type | Method and Description |
---|---|
static Config.Keys |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Config.Keys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Config.Keys Positions
public static final Config.Keys TokenAnnotations
public static final Config.Keys ClassAnnotations
public final Config.Relevance relevance
public final String key
public final Object defaultValue
public static final Map<String,Config.Keys> fromName
public static Config.Keys[] values()
for (Config.Keys c : Config.Keys.values()) System.out.println(c);
public static Config.Keys 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 null