Class ComponentGsonDeserializer

java.lang.Object
tools.jackson.databind.ValueDeserializer<net.kyori.adventure.text.Component>
de.eldoria.jacksonbukkit.deserializer.ComponentGsonDeserializer
All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider
Direct Known Subclasses:
ComponentMiniMessageDeserializer

public class ComponentGsonDeserializer extends tools.jackson.databind.ValueDeserializer<net.kyori.adventure.text.Component>
Class for deserialization of Component using Gson.
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer

    tools.jackson.databind.ValueDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.text.Component
    deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt)
     
    protected net.kyori.adventure.text.Component
    parseObjectTree(tools.jackson.databind.JsonNode tree, tools.jackson.databind.DeserializationContext ctxt)
     

    Methods inherited from class tools.jackson.databind.ValueDeserializer

    createContextual, deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ComponentGsonDeserializer

      public ComponentGsonDeserializer()
  • Method Details

    • deserialize

      public net.kyori.adventure.text.Component deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) throws tools.jackson.core.JacksonException
      Specified by:
      deserialize in class tools.jackson.databind.ValueDeserializer<net.kyori.adventure.text.Component>
      Throws:
      tools.jackson.core.JacksonException
    • parseObjectTree

      protected net.kyori.adventure.text.Component parseObjectTree(tools.jackson.databind.JsonNode tree, tools.jackson.databind.DeserializationContext ctxt) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException