Package com.alibaba.fastjson2.writer
Class FieldWriterObject<T>
- java.lang.Object
-
- com.alibaba.fastjson2.writer.FieldWriter<T>
-
- com.alibaba.fastjson2.writer.FieldWriterObject<T>
-
- All Implemented Interfaces:
Comparable
public class FieldWriterObject<T> extends FieldWriter<T>
-
-
Field Summary
-
Fields inherited from class com.alibaba.fastjson2.writer.FieldWriter
decimalFormat, features, field, fieldClass, fieldName, fieldOffset, fieldType, format, label, locale, method, ordinal, primitive
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectWritergetInitWriter()ObjectWritergetObjectWriter(JSONWriter jsonWriter, Class valueClass)booleanunwrapped()booleanwrite(JSONWriter jsonWriter, T object)voidwriteEnumJSONB(JSONWriter jsonWriter, Enum e)voidwriteValue(JSONWriter jsonWriter, T object)protected booleanwriteWithUnwrapped(JSONWriter jsonWriter, Object value, long features, boolean refDetect, ObjectWriter valueWriter)-
Methods inherited from class com.alibaba.fastjson2.writer.FieldWriter
compareTo, getFieldValue, getFunction, getItemClass, getItemType, getItemWriter, getPath, getRootParentPath, isDateFormatISO8601, isDateFormatMillis, isFieldClassSerializable, toString, writeBinary, writeBool, writeBool, writeDate, writeDate, writeDate, writeDouble, writeDouble, writeDouble, writeEnum, writeFieldName, writeFieldNameJSONB, writeFloat, writeFloat, writeInt16, writeInt32, writeInt64, writeList, writeListJSONB, writeListStr, writeListValue, writeListValueJSONB, writeString, writeString
-
-
-
-
Method Detail
-
getInitWriter
public ObjectWriter getInitWriter()
- Overrides:
getInitWriterin classFieldWriter<T>
-
unwrapped
public boolean unwrapped()
- Overrides:
unwrappedin classFieldWriter<T>
-
getObjectWriter
public ObjectWriter getObjectWriter(JSONWriter jsonWriter, Class valueClass)
- Overrides:
getObjectWriterin classFieldWriter<T>
-
writeEnumJSONB
public void writeEnumJSONB(JSONWriter jsonWriter, Enum e)
- Overrides:
writeEnumJSONBin classFieldWriter<T>
-
write
public boolean write(JSONWriter jsonWriter, T object)
- Specified by:
writein classFieldWriter<T>
-
writeWithUnwrapped
protected final boolean writeWithUnwrapped(JSONWriter jsonWriter, Object value, long features, boolean refDetect, ObjectWriter valueWriter)
-
writeValue
public void writeValue(JSONWriter jsonWriter, T object)
- Specified by:
writeValuein classFieldWriter<T>
-
-