Enum GQLTokenType
- java.lang.Object
-
- java.lang.Enum<GQLTokenType>
-
- net.morimekta.providence.graphql.parser.GQLTokenType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GQLTokenType>,net.morimekta.util.lexer.TokenType
public enum GQLTokenType extends java.lang.Enum<GQLTokenType> implements net.morimekta.util.lexer.TokenType
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GQLTokenTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GQLTokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDENTIFIER
public static final GQLTokenType IDENTIFIER
-
STRING
public static final GQLTokenType STRING
-
INTEGER
public static final GQLTokenType INTEGER
-
FLOAT
public static final GQLTokenType FLOAT
-
SYMBOL
public static final GQLTokenType SYMBOL
-
DIRECTIVE
public static final GQLTokenType DIRECTIVE
-
VARIABLE
public static final GQLTokenType VARIABLE
-
-
Method Detail
-
values
public static GQLTokenType[] 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 (GQLTokenType c : GQLTokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GQLTokenType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-