public static enum Parser.Arity extends java.lang.Enum<Parser.Arity>
Enum Constant and Description |
---|
MANY
The argument accepts one or more values.
|
NONE
The argument accepts no value.
|
ONE
The argument accepts a single value.
|
Modifier and Type | Method and Description |
---|---|
static Parser.Arity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Parser.Arity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Parser.Arity NONE
public static final Parser.Arity ONE
public static final Parser.Arity MANY
public static Parser.Arity[] values()
for (Parser.Arity c : Parser.Arity.values()) System.out.println(c);
public static Parser.Arity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null