Enum JSONToken.TokenType
- java.lang.Object
-
- java.lang.Enum<JSONToken.TokenType>
-
- com.dynatrace.openkit.util.json.lexer.JSONToken.TokenType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JSONToken.TokenType>
- Enclosing class:
- JSONToken
public static enum JSONToken.TokenType extends java.lang.Enum<JSONToken.TokenType>
Token's type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLONCOMMALEFT_BRACELEFT_SQUARE_BRACKETLITERAL_BOOLEANLITERAL_NULLRIGHT_BRACERIGHT_SQUARE_BRACKETVALUE_NUMBERVALUE_STRING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSONToken.TokenTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JSONToken.TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALUE_NUMBER
public static final JSONToken.TokenType VALUE_NUMBER
-
VALUE_STRING
public static final JSONToken.TokenType VALUE_STRING
-
LITERAL_BOOLEAN
public static final JSONToken.TokenType LITERAL_BOOLEAN
-
LITERAL_NULL
public static final JSONToken.TokenType LITERAL_NULL
-
LEFT_BRACE
public static final JSONToken.TokenType LEFT_BRACE
-
RIGHT_BRACE
public static final JSONToken.TokenType RIGHT_BRACE
-
LEFT_SQUARE_BRACKET
public static final JSONToken.TokenType LEFT_SQUARE_BRACKET
-
RIGHT_SQUARE_BRACKET
public static final JSONToken.TokenType RIGHT_SQUARE_BRACKET
-
COMMA
public static final JSONToken.TokenType COMMA
-
COLON
public static final JSONToken.TokenType COLON
-
-
Method Detail
-
values
public static JSONToken.TokenType[] 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 (JSONToken.TokenType c : JSONToken.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JSONToken.TokenType 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
-
-