Enum WithOptions.TypeKind
- java.lang.Object
-
- java.lang.Enum<WithOptions.TypeKind>
-
- de.haumacher.msgbuf.generator.ast.WithOptions.TypeKind
-
- All Implemented Interfaces:
Serializable,Comparable<WithOptions.TypeKind>
- Enclosing class:
- WithOptions
public static enum WithOptions.TypeKind extends Enum<WithOptions.TypeKind>
Type codes for theWithOptionshierarchy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANTType literal forConstant.DEFINITION_FILEType literal forDefinitionFile.ENUM_DEFType literal forEnumDef.FIELDType literal forField.MESSAGE_DEFType literal forMessageDef.OPTION_CONTAINERType literal forOptionContainer.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WithOptions.TypeKindvalueOf(String name)Returns the enum constant of this type with the specified name.static WithOptions.TypeKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPTION_CONTAINER
public static final WithOptions.TypeKind OPTION_CONTAINER
Type literal forOptionContainer.
-
CONSTANT
public static final WithOptions.TypeKind CONSTANT
Type literal forConstant.
-
FIELD
public static final WithOptions.TypeKind FIELD
Type literal forField.
-
ENUM_DEF
public static final WithOptions.TypeKind ENUM_DEF
Type literal forEnumDef.
-
MESSAGE_DEF
public static final WithOptions.TypeKind MESSAGE_DEF
Type literal forMessageDef.
-
DEFINITION_FILE
public static final WithOptions.TypeKind DEFINITION_FILE
Type literal forDefinitionFile.
-
-
Method Detail
-
values
public static WithOptions.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 (WithOptions.TypeKind c : WithOptions.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 WithOptions.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
-
-