Package io.micronaut.serde.support
Enum AbstractStreamDecoder.TokenType
- java.lang.Object
-
- java.lang.Enum<AbstractStreamDecoder.TokenType>
-
- io.micronaut.serde.support.AbstractStreamDecoder.TokenType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AbstractStreamDecoder.TokenType>
- Enclosing class:
- AbstractStreamDecoder
protected static enum AbstractStreamDecoder.TokenType extends java.lang.Enum<AbstractStreamDecoder.TokenType>
The token type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANA boolean.END_ARRAYEnd of an array.END_OBJECTEnd of an object.KEYA key.NULLAnullvalue.NUMBERA number.OTHERAny other token.START_ARRAYStart of an array.START_OBJECTStart of an object.STRINGA string.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractStreamDecoder.TokenTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AbstractStreamDecoder.TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_ARRAY
public static final AbstractStreamDecoder.TokenType START_ARRAY
Start of an array.
-
END_ARRAY
public static final AbstractStreamDecoder.TokenType END_ARRAY
End of an array.
-
START_OBJECT
public static final AbstractStreamDecoder.TokenType START_OBJECT
Start of an object.
-
END_OBJECT
public static final AbstractStreamDecoder.TokenType END_OBJECT
End of an object.
-
KEY
public static final AbstractStreamDecoder.TokenType KEY
A key.
-
NUMBER
public static final AbstractStreamDecoder.TokenType NUMBER
A number.
-
STRING
public static final AbstractStreamDecoder.TokenType STRING
A string.
-
BOOLEAN
public static final AbstractStreamDecoder.TokenType BOOLEAN
A boolean.
-
NULL
public static final AbstractStreamDecoder.TokenType NULL
Anullvalue.
-
OTHER
public static final AbstractStreamDecoder.TokenType OTHER
Any other token.
-
-
Method Detail
-
values
public static AbstractStreamDecoder.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 (AbstractStreamDecoder.TokenType c : AbstractStreamDecoder.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 AbstractStreamDecoder.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
-
-