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
-
Field Summary
Fields inherited from class com.alibaba.fastjson2.writer.FieldWriter
decimalFormat, features, field, fieldClass, fieldName, fieldOffset, fieldType, format, label, locale, method, ordinal, primitive -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetObjectWriter(JSONWriter jsonWriter, Class valueClass) booleanbooleanwrite(JSONWriter jsonWriter, T object) voidwriteEnumJSONB(JSONWriter jsonWriter, Enum e) voidwriteValue(JSONWriter jsonWriter, T object) protected final 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
-
Constructor Details
-
FieldWriterObject
-
-
Method Details
-
getInitWriter
- Overrides:
getInitWriterin classFieldWriter<T>
-
unwrapped
public boolean unwrapped()- Overrides:
unwrappedin classFieldWriter<T>
-
getObjectWriter
- Overrides:
getObjectWriterin classFieldWriter<T>
-
writeEnumJSONB
- Overrides:
writeEnumJSONBin classFieldWriter<T>
-
write
- Specified by:
writein classFieldWriter<T>
-
writeWithUnwrapped
protected final boolean writeWithUnwrapped(JSONWriter jsonWriter, Object value, long features, boolean refDetect, ObjectWriter valueWriter) -
writeValue
- Specified by:
writeValuein classFieldWriter<T>
-