Enum Type.TypeKind
- java.lang.Object
-
- java.lang.Enum<Type.TypeKind>
-
- de.haumacher.msgbuf.generator.ast.Type.TypeKind
-
- All Implemented Interfaces:
Serializable,Comparable<Type.TypeKind>
- Enclosing class:
- Type
public static enum Type.TypeKind extends Enum<Type.TypeKind>
Type codes for theTypehierarchy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM_TYPEType literal forCustomType.MAP_TYPEType literal forMapType.PRIMITIVE_TYPEType literal forPrimitiveType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Type.TypeKindvalueOf(String name)Returns the enum constant of this type with the specified name.static Type.TypeKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CUSTOM_TYPE
public static final Type.TypeKind CUSTOM_TYPE
Type literal forCustomType.
-
PRIMITIVE_TYPE
public static final Type.TypeKind PRIMITIVE_TYPE
Type literal forPrimitiveType.
-
MAP_TYPE
public static final Type.TypeKind MAP_TYPE
Type literal forMapType.
-
-
Method Detail
-
values
public static Type.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 (Type.TypeKind c : Type.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 Type.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
-
-