Interface JsonDeserializationContext

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract <T> T decodeBuiltIn() Decodes the value in the current context.
      <T> T decode(Type type) Decodes the value in the current context.
      <T> T decode(Type type, Schema<T> schema) Decodes the value in the current context.
      <T> T decodeCustom(Type type) Decodes a custom value in the current context.
      abstract <T> T decodeCustom(Type type, @NotNull() Schema<T> schema) Decodes the value in the current context.
      • Methods inherited from class dev.drtheo.autojson.adapter.JsonContext

        auto, 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

    • Method Detail

      • decodeBuiltIn

         abstract <T> T decodeBuiltIn()

        Decodes the value in the current context.

        Returns:

        The decoded built-in object.

      • decode

         <T> T decode(Type type)

        Decodes the value in the current context.

        Parameters:
        type - the type of the object to decode.
        Returns:

        The decoded object.

      • decode

         <T> T decode(Type type, Schema<T> schema)

        Decodes the value in the current context.

        Parameters:
        type - the type of the object to decode.
        Returns:

        The decoded object.

      • decodeCustom

         <T> T decodeCustom(Type type)

        Decodes a custom value in the current context.

        Parameters:
        type - the type of the object to decode.
        Returns:

        The decoded object.

      • decodeCustom

         abstract <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.