Package org.apache.camel.util.json
Enum Class Yytoken.Types
- All Implemented Interfaces:
Serializable
,Comparable<Yytoken.Types>
,Constable
- Enclosing class:
Yytoken
Represents the different kinds of tokens.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTokens of this type will always have a value of ":"Tokens of this type will always have a value of ","Tokens of this type will always have a value that is a boolean, null, number, or string.Tokens of this type will always have a value of ""Tokens of this type will always have a value of "{"Tokens of this type will always have a value of "["Tokens of this type will always have a value of "}"Tokens of this type will always have a value of "]"Represent the value (not a parsing token but used during color print) -
Method Summary
Modifier and TypeMethodDescriptionstatic Yytoken.Types
Returns the enum constant of this class with the specified name.static Yytoken.Types[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COLON
Tokens of this type will always have a value of ":" -
COMMA
Tokens of this type will always have a value of "," -
DATUM
Tokens of this type will always have a value that is a boolean, null, number, or string. -
END
Tokens of this type will always have a value of "" -
LEFT_BRACE
Tokens of this type will always have a value of "{" -
LEFT_SQUARE
Tokens of this type will always have a value of "[" -
RIGHT_BRACE
Tokens of this type will always have a value of "}" -
RIGHT_SQUARE
Tokens of this type will always have a value of "]" -
VALUE
Represent the value (not a parsing token but used during color print)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-