Package com.alibaba.fastjson2.reader
Class ObjectReaderBean<T>
java.lang.Object
com.alibaba.fastjson2.reader.ObjectReaderBean<T>
- All Implemented Interfaces:
ObjectReader<T>
- Direct Known Subclasses:
ObjectReaderAdapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Functionprotected FieldReaderprotected final longprotected booleanprotected final Classprotected final JSONSchemaprotected booleanprotected final Stringprotected final longFields inherited from interface com.alibaba.fastjson2.reader.ObjectReader
HASH_TYPE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedObjectReaderBean(Class objectClass, Supplier<T> creator, String typeName, long features, JSONSchema schema, Function buildFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptExtra(Object object, String fieldName, Object fieldValue) checkAutoType(JSONReader jsonReader, Class expectClass, long features) protected voidinitDefaultValue(T object) protected voidprocessExtra(JSONReader jsonReader, Object object) protected TprocessObjectInputSingleItemArray(JSONReader jsonReader, Type fieldType, Object fieldName, long features) voidreadObject(JSONReader jsonReader, Object object, long features) readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long 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
autoType, autoType, createInstance, createInstance, createInstance, createInstance, createInstance, createInstanceNoneDefaultConstructor, getBuildFunction, getFeatures, getFieldReader, getFieldReader, getFieldReaderLCase, getTypeKey, getTypeKeyHash, readArrayMappingJSONBObject, readArrayMappingObject, readJSONBObject, readObject, readObject, setFieldValue, setFieldValue
-
Field Details
-
objectClass
-
creator
-
buildFunction
-
features
protected final long features -
typeName
-
typeNameHash
protected final long typeNameHash -
extraFieldReader
-
hasDefaultValue
protected boolean hasDefaultValue -
serializable
protected boolean serializable -
schema
-
-
Constructor Details
-
ObjectReaderBean
-
-
Method Details
-
getObjectClass
- Specified by:
getObjectClassin interfaceObjectReader<T>
-
processObjectInputSingleItemArray
protected T processObjectInputSingleItemArray(JSONReader jsonReader, Type fieldType, Object fieldName, long features) -
processExtra
-
acceptExtra
- Specified by:
acceptExtrain interfaceObjectReader<T>
-
checkAutoType
-
initDefaultValue
-
readObject
-
readObject
- Specified by:
readObjectin interfaceObjectReader<T>- Returns:
ObjectReader
-