Package com.alibaba.fastjson2.reader
Class ObjectReaderRootName<T>
java.lang.Object
com.alibaba.fastjson2.reader.ObjectReaderBean<T>
com.alibaba.fastjson2.reader.ObjectReaderAdapter<T>
com.alibaba.fastjson2.reader.ObjectReaderRootName<T>
- All Implemented Interfaces:
ObjectReader<T>
-
Field Summary
Fields inherited from class com.alibaba.fastjson2.reader.ObjectReaderAdapter
fieldReaders, typeKey, typeKeyHashCodeFields inherited from class com.alibaba.fastjson2.reader.ObjectReaderBean
autoTypeBeforeHandler, buildFunction, creator, extraFieldReader, features, hasDefaultValue, objectClass, schema, serializable, typeName, typeNameHashFields inherited from interface com.alibaba.fastjson2.reader.ObjectReader
HASH_TYPE, VALUE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionObjectReaderRootName(Class objectClass, String typeKey, String typeName, String rootName, long features, JSONSchema schema, Supplier creator, Function buildFunction, Class[] seeAlso, String[] seeAlsoNames, Class seeAlsoDefault, FieldReader[] fieldReaders) -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(Map map, long features) 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 com.alibaba.fastjson2.reader.ObjectReaderAdapter
apply, autoType, autoType, autoType, autoType, createInstance, createInstance, createInstance0, getBuildFunction, getFeatures, getFieldOrdinal, getFieldReader, getFieldReaderLCase, getFieldReaders, getFieldReaderUL, getTypeKey, getTypeKeyHash, ignoreError, initDefaultValue, initStringFieldAsEmpty, readArrayMappingJSONBObject, readArrayMappingJSONBObject0, readArrayMappingObject, readFieldValue, readFieldValueMethods inherited from class com.alibaba.fastjson2.reader.ObjectReaderBean
acceptExtra, checkAutoType, checkAutoType, checkAutoType0, getAutoTypeBeforeHandler, getObjectClass, processExtra, processExtra, processObjectInputSingleItemArray, readFieldValueWithLCase, readObject, setAutoTypeBeforeHandlerMethods 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, createInstance, createInstance, createInstance, createInstance, createInstanceNoneDefaultConstructor, getFieldReader, readObject, readObject, readObject, setFieldValue, setFieldValue, setFieldValue
-
Constructor Details
-
ObjectReaderRootName
-
-
Method Details
-
createInstance
- Specified by:
createInstancein interfaceObjectReader<T>- Overrides:
createInstancein classObjectReaderAdapter<T>- Returns:
ObjectReader
-
readJSONBObject
Description copied from interface:ObjectReaderReads an object from JSONB format.- Specified by:
readJSONBObjectin interfaceObjectReader<T>- Overrides:
readJSONBObjectin classObjectReaderAdapter<T>- 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<T>- Overrides:
readObjectin classObjectReaderBean<T>- 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
-