Enum Option.TypeKind
- java.lang.Object
-
- java.lang.Enum<Option.TypeKind>
-
- de.haumacher.msgbuf.generator.ast.Option.TypeKind
-
- All Implemented Interfaces:
Serializable,Comparable<Option.TypeKind>
- Enclosing class:
- Option
public static enum Option.TypeKind extends Enum<Option.TypeKind>
Type codes for theOptionhierarchy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLAGType literal forFlag.NUMBER_OPTIONType literal forNumberOption.STRING_OPTIONType literal forStringOption.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Option.TypeKindvalueOf(String name)Returns the enum constant of this type with the specified name.static Option.TypeKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING_OPTION
public static final Option.TypeKind STRING_OPTION
Type literal forStringOption.
-
NUMBER_OPTION
public static final Option.TypeKind NUMBER_OPTION
Type literal forNumberOption.
-
FLAG
public static final Option.TypeKind FLAG
Type literal forFlag.
-
-
Method Detail
-
values
public static Option.TypeKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Option.TypeKind c : Option.TypeKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Option.TypeKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-