Package com.alibaba.fastjson2.reader
Class ObjectReaderImplField
java.lang.Object
com.alibaba.fastjson2.reader.ObjectReaderImplField
- All Implemented Interfaces:
ObjectReader
-
Field Summary
Fields inherited from interface com.alibaba.fastjson2.reader.ObjectReader
HASH_TYPE, VALUE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadArrayMappingJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) Reads an object from JSONB format with array mapping.readArrayMappingObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) Reads an object from JSON format with array mapping.readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) Reads an object from JSONB format.readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) Reads an object from the specified JSONReader with the given field type, field name, and features.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alibaba.fastjson2.reader.ObjectReader
accept, acceptExtra, acceptExtra, autoType, autoType, createInstance, createInstance, createInstance, createInstance, createInstance, createInstance, createInstance, createInstanceNoneDefaultConstructor, getBuildFunction, getFeatures, getFieldReader, getFieldReader, getFieldReaderLCase, getObjectClass, getTypeKey, getTypeKeyHash, readObject, readObject, readObject, setFieldValue, setFieldValue, setFieldValue
-
Constructor Details
-
ObjectReaderImplField
public ObjectReaderImplField()
-
-
Method Details
-
readJSONBObject
public Object readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) Description copied from interface:ObjectReaderReads an object from JSONB format.- Specified by:
readJSONBObjectin interfaceObjectReader- Parameters:
jsonReader- the JSONReader to use for parsingfieldType- the type of the field being readfieldName- the name of the field being readfeatures- the features to use- Returns:
- the deserialized object
-
readArrayMappingJSONBObject
public Object readArrayMappingJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) Description copied from interface:ObjectReaderReads an object from JSONB format with array mapping.- Specified by:
readArrayMappingJSONBObjectin interfaceObjectReader- Parameters:
jsonReader- the JSONReader to use for parsingfieldType- the type of the field being readfieldName- the name of the field being readfeatures- the features to use- Returns:
- the deserialized object
-
readArrayMappingObject
public Object readArrayMappingObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) Description copied from interface:ObjectReaderReads an object from JSON format with array mapping.- Specified by:
readArrayMappingObjectin interfaceObjectReader- Parameters:
jsonReader- the JSONReader to use for parsingfieldType- the type of the field being readfieldName- the name of the field being readfeatures- the features to use- Returns:
- the deserialized object
-
readObject
Description copied from interface:ObjectReaderReads an object from the specified JSONReader with the given field type, field name, and features.- Specified by:
readObjectin interfaceObjectReader- Parameters:
jsonReader- the JSONReader to use for parsingfieldType- the type of the field being readfieldName- the name of the field being readfeatures- the features to use- Returns:
- the deserialized object
-