Enum Token
- All Implemented Interfaces:
Serializable,Comparable<Token>,java.lang.constant.Constable
public enum Token extends Enum<Token>
Tokens that the input can return.
- Author:
- Andreas Holstenson
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description KEYKey, value is available viaStreamingInput.getString().LIST_ENDEnd of a list.LIST_STARTStart of a list.NULLNull, special case ofVALUE.OBJECT_ENDEnd of an object.OBJECT_STARTStart of an object.VALUEValue, available via getters (andStreamingInput.getValue()). -
Method Summary
-
Enum Constant Details
-
LIST_START
Start of a list. -
LIST_END
End of a list. -
OBJECT_START
Start of an object. -
OBJECT_END
End of an object. -
KEY
Key, value is available viaStreamingInput.getString(). -
VALUE
Value, available via getters (andStreamingInput.getValue()). -
NULL
Null, special case ofVALUE.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-