Class ObjectWriterPrimitiveImpl<T>

java.lang.Object
com.alibaba.fastjson2.writer.ObjectWriterPrimitiveImpl<T>
All Implemented Interfaces:
ObjectWriter<T>
Direct Known Subclasses:
ObjectWriterImplJSONP, ObjectWriterImplMap, ObjectWriterImplToString

public abstract class ObjectWriterPrimitiveImpl<T> extends Object implements ObjectWriter<T>
  • Constructor Details

    • ObjectWriterPrimitiveImpl

      public ObjectWriterPrimitiveImpl()
  • Method Details

    • writeArrayMappingJSONB

      public void writeArrayMappingJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features)
      Description copied from interface: ObjectWriter
      Writes an object to the JSONWriter in array mapping JSONB format with additional parameters.
      Specified by:
      writeArrayMappingJSONB in interface ObjectWriter<T>
      Parameters:
      jsonWriter - the JSONWriter to which the object should be written
      object - the object to write
      fieldName - the name of the field being written
      fieldType - the type of the field being written
      features - the features to use for writing
    • writeArrayMapping

      public void writeArrayMapping(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features)
      Description copied from interface: ObjectWriter
      Writes an object to the JSONWriter in array mapping format.
      Specified by:
      writeArrayMapping in interface ObjectWriter<T>
      Parameters:
      jsonWriter - the JSONWriter to which the object should be written
      object - the object to write
      fieldName - the name of the field being written
      fieldType - the type of the field being written
      features - the features to use for writing
    • getFunction

      public Function getFunction()