Class ObjectReaderImplList

java.lang.Object
com.alibaba.fastjson2.reader.ObjectReaderImplList
All Implemented Interfaces:
ObjectReader

public final class ObjectReaderImplList extends Object implements ObjectReader
  • Field Details

  • Constructor Details

    • ObjectReaderImplList

      public ObjectReaderImplList(Type listType, Class listClass, Class instanceType, Type itemType, Function builder)
  • Method Details

    • of

      public static ObjectReader of(Type type, Class listClass, long features)
    • getObjectClass

      public Class getObjectClass()
      Description copied from interface: ObjectReader
      Gets the class of objects that this ObjectReader can deserialize.
      Specified by:
      getObjectClass in interface ObjectReader
      Returns:
      the object class, or null if not specified
    • getBuildFunction

      public Function getBuildFunction()
      Description copied from interface: ObjectReader
      Gets the build function used to construct the final object instance.
      Specified by:
      getBuildFunction in interface ObjectReader
      Returns:
      the build function, or null if not specified
    • createInstance

      public Object createInstance(Collection collection, long features)
      Specified by:
      createInstance in interface ObjectReader
      Returns:
      ObjectReader
    • createInstance

      public Object createInstance(long features)
      Specified by:
      createInstance in interface ObjectReader
      Returns:
      ObjectReader
    • readJSONBObject

      public Object readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
      Description copied from interface: ObjectReader
      Reads an object from JSONB format.
      Specified by:
      readJSONBObject in interface ObjectReader
      Parameters:
      jsonReader - the JSONReader to use for parsing
      fieldType - the type of the field being read
      fieldName - the name of the field being read
      features - the features to use
      Returns:
      the deserialized object
    • readObject

      public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
      Description copied from interface: ObjectReader
      Reads an object from the specified JSONReader with the given field type, field name, and features.
      Specified by:
      readObject in interface ObjectReader
      Parameters:
      jsonReader - the JSONReader to use for parsing
      fieldType - the type of the field being read
      fieldName - the name of the field being read
      features - the features to use
      Returns:
      the deserialized object