Package com.alibaba.fastjson2.writer
Class ObjectWriterPrimitiveImpl<T>
java.lang.Object
com.alibaba.fastjson2.writer.ObjectWriterPrimitiveImpl<T>
- All Implemented Interfaces:
ObjectWriter<T>
- Direct Known Subclasses:
ObjectWriterImplJSONP,ObjectWriterImplMap,ObjectWriterImplToString
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteArrayMapping(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Writes an object to the JSONWriter in array mapping format.voidwriteArrayMappingJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Writes an object to the JSONWriter in array mapping JSONB format with additional parameters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alibaba.fastjson2.writer.ObjectWriter
getFeatures, getFieldValue, getFieldWriter, getFieldWriter, getFieldWriters, hasFilter, setFilter, setNameFilter, setPropertyFilter, setPropertyPreFilter, setValueFilter, toJSONString, write, write, writeArrayMappingJSONB, writeJSONB, writeTypeInfo, writeWithFilter, writeWithFilter
-
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:ObjectWriterWrites an object to the JSONWriter in array mapping JSONB format with additional parameters.- Specified by:
writeArrayMappingJSONBin interfaceObjectWriter<T>- Parameters:
jsonWriter- the JSONWriter to which the object should be writtenobject- the object to writefieldName- the name of the field being writtenfieldType- the type of the field being writtenfeatures- the features to use for writing
-
writeArrayMapping
public void writeArrayMapping(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Description copied from interface:ObjectWriterWrites an object to the JSONWriter in array mapping format.- Specified by:
writeArrayMappingin interfaceObjectWriter<T>- Parameters:
jsonWriter- the JSONWriter to which the object should be writtenobject- the object to writefieldName- the name of the field being writtenfieldType- the type of the field being writtenfeatures- the features to use for writing
-
getFunction
-