Class LuaTableJacksonSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<org.luaj.vm2.LuaTable>
emu.grasscutter.scripts.serializer.LuaTableJacksonSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, Serializer

public class LuaTableJacksonSerializer extends com.fasterxml.jackson.databind.JsonSerializer<org.luaj.vm2.LuaTable> implements Serializer
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(org.luaj.vm2.LuaTable value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)
     
    <T> List<T>
    toList(Class<T> type, Object obj)
     
    <T> Map<String,T>
    toMap(Class<T> type, Object obj)
     
    <T> T
    toObject(Class<T> type, Object obj)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId

    Methods inherited from class java.lang.Object

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

    • LuaTableJacksonSerializer

      public LuaTableJacksonSerializer()
  • Method Details

    • serialize

      public void serialize(org.luaj.vm2.LuaTable value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException
      Specified by:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<org.luaj.vm2.LuaTable>
      Throws:
      IOException
    • toList

      public <T> List<T> toList(Class<T> type, Object obj)
      Specified by:
      toList in interface Serializer
    • toObject

      public <T> T toObject(Class<T> type, Object obj)
      Specified by:
      toObject in interface Serializer
    • toMap

      public <T> Map<String,T> toMap(Class<T> type, Object obj)
      Specified by:
      toMap in interface Serializer