Package com.alibaba.fastjson2.reader
Class ObjectReaderImplMap
java.lang.Object
com.alibaba.fastjson2.reader.ObjectReaderImplMap
- All Implemented Interfaces:
ObjectReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectReaderImplMapstatic final ObjectReaderImplMapFields inherited from interface com.alibaba.fastjson2.reader.ObjectReader
HASH_TYPE, VALUE_NAME -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(long features) createInstance(Map map, long features) Gets the build function used to construct the final object instance.Gets the class of objects that this ObjectReader can deserialize.static ObjectReaderreadJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName1, 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, createInstanceNoneDefaultConstructor, getFeatures, getFieldReader, getFieldReader, getFieldReaderLCase, getTypeKey, getTypeKeyHash, readArrayMappingJSONBObject, readArrayMappingObject, readObject, readObject, readObject, setFieldValue, setFieldValue, setFieldValue
-
Field Details
-
INSTANCE
-
INSTANCE_OBJECT
-
-
Method Details
-
of
-
getObjectClass
Description copied from interface:ObjectReaderGets the class of objects that this ObjectReader can deserialize.- Specified by:
getObjectClassin interfaceObjectReader- Returns:
- the object class, or null if not specified
-
getBuildFunction
Description copied from interface:ObjectReaderGets the build function used to construct the final object instance.- Specified by:
getBuildFunctionin interfaceObjectReader- Returns:
- the build function, or null if not specified
-
createInstance
- Specified by:
createInstancein interfaceObjectReader- Returns:
ObjectReader
-
createInstance
- Specified by:
createInstancein interfaceObjectReader- Returns:
ObjectReader
-
readJSONBObject
public Object readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName1, 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 readfieldName1- 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
-