Class ObjectReaderNoneDefaultConstructor<T>

java.lang.Object
com.alibaba.fastjson2.reader.ObjectReaderBean<T>
com.alibaba.fastjson2.reader.ObjectReaderAdapter<T>
com.alibaba.fastjson2.reader.ObjectReaderNoneDefaultConstructor<T>
All Implemented Interfaces:
ObjectReader<T>

public class ObjectReaderNoneDefaultConstructor<T> extends ObjectReaderAdapter<T>
  • Constructor Details

  • Method Details

    • getParameterFieldReaders

      public Collection<FieldReader> getParameterFieldReaders()
    • createInstanceNoneDefaultConstructor

      public T createInstanceNoneDefaultConstructor(Map<Long,Object> values)
      Description copied from interface: ObjectReader
      Creates an instance of the object type using a non-default constructor with the specified values.
      Parameters:
      values - the map of field hash codes to values
      Returns:
      a new instance of the object created with a non-default constructor
    • readJSONBObject

      public T 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<T>
      Overrides:
      readJSONBObject in class ObjectReaderAdapter<T>
      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
    • readArrayMappingObject

      public T readArrayMappingObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
      Description copied from interface: ObjectReader
      Reads an object from JSON format with array mapping.
      Specified by:
      readArrayMappingObject in interface ObjectReader<T>
      Overrides:
      readArrayMappingObject in class ObjectReaderAdapter<T>
      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 T 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<T>
      Overrides:
      readObject in class ObjectReaderBean<T>
      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
    • readFromCSV

      public T readFromCSV(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
    • createInstance

      public T createInstance(Collection collection, long features)
      Specified by:
      createInstance in interface ObjectReader<T>
      Overrides:
      createInstance in class ObjectReaderAdapter<T>
      Returns:
      ObjectReader
    • createInstance

      public T createInstance(Map map, long features)
      Specified by:
      createInstance in interface ObjectReader<T>
      Overrides:
      createInstance in class ObjectReaderAdapter<T>
      Returns:
      ObjectReader
    • createInstance

      public T createInstance(Object[] args)