Enum TypeNode.TypeKind
- java.lang.Object
-
- java.lang.Enum<TypeNode.TypeKind>
-
- com.google.api.generator.engine.ast.TypeNode.TypeKind
-
- All Implemented Interfaces:
Serializable,Comparable<TypeNode.TypeKind>
- Enclosing class:
- TypeNode
public static enum TypeNode.TypeKind extends Enum<TypeNode.TypeKind>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeNode.TypeKindvalueOf(String name)Returns the enum constant of this type with the specified name.static TypeNode.TypeKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final TypeNode.TypeKind BYTE
-
SHORT
public static final TypeNode.TypeKind SHORT
-
INT
public static final TypeNode.TypeKind INT
-
LONG
public static final TypeNode.TypeKind LONG
-
FLOAT
public static final TypeNode.TypeKind FLOAT
-
DOUBLE
public static final TypeNode.TypeKind DOUBLE
-
BOOLEAN
public static final TypeNode.TypeKind BOOLEAN
-
CHAR
public static final TypeNode.TypeKind CHAR
-
OBJECT
public static final TypeNode.TypeKind OBJECT
-
VOID
public static final TypeNode.TypeKind VOID
-
-
Method Detail
-
values
public static TypeNode.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 (TypeNode.TypeKind c : TypeNode.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 TypeNode.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
-
-