Class JsonStringParser2
-
- All Implemented Interfaces:
-
dev.drtheo.autojson.SchemaHolder,dev.drtheo.autojson.adapter.JsonContext,dev.drtheo.autojson.adapter.JsonDeserializationContext
public class JsonStringParser2 implements JsonDeserializationContext
-
-
Constructor Summary
Constructors Constructor Description JsonStringParser2(JsonStringAdapter adapter, String raw)
-
Method Summary
Modifier and Type Method Description <T> TdecodeBuiltIn()Decodes the value in the current context. booleanparseTrue()booleanparseFalse()ObjectparseNull()voidskipWhitespace()voidparseArray()<T> TdecodeCustom(Type type, @NotNull() Schema<T> schema)Decodes the value in the current context. AutoJSONauto()-
Methods inherited from class dev.drtheo.autojson.adapter.JsonDeserializationContext
decode, decode, decodeCustom -
Methods inherited from class dev.drtheo.autojson.adapter.JsonContext
schema, schemaHolder -
Methods inherited from class dev.drtheo.autojson.SchemaHolder
schema -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
JsonStringParser2
JsonStringParser2(JsonStringAdapter adapter, String raw)
-
-
Method Detail
-
decodeBuiltIn
<T> T decodeBuiltIn()
Decodes the value in the current context.
- Returns:
The decoded built-in object.
-
parseTrue
boolean parseTrue()
-
parseFalse
boolean parseFalse()
-
skipWhitespace
void skipWhitespace()
-
parseArray
void parseArray()
-
decodeCustom
<T> T decodeCustom(Type type, @NotNull() Schema<T> schema)
Decodes the value in the current context.
- Parameters:
type- the type of the object to decode.schema- the schema used to decode the value.- Returns:
The decoded non-built-in object.
-
-
-
-