Package com.alibaba.fastjson2.reader
Class ObjectReaderInterface<T>
- java.lang.Object
-
- com.alibaba.fastjson2.reader.ObjectReaderBean<T>
-
- com.alibaba.fastjson2.reader.ObjectReaderAdapter<T>
-
- com.alibaba.fastjson2.reader.ObjectReaderInterface<T>
-
- All Implemented Interfaces:
ObjectReader<T>
public final class ObjectReaderInterface<T> extends ObjectReaderAdapter<T>
-
-
Field Summary
-
Fields inherited from class com.alibaba.fastjson2.reader.ObjectReaderAdapter
fieldReaders, typeKey, typeKeyHashCode
-
Fields inherited from class com.alibaba.fastjson2.reader.ObjectReaderBean
autoTypeBeforeHandler, buildFunction, creator, extraFieldReader, features, hasDefaultValue, objectClass, schema, serializable, typeName, typeNameHash
-
Fields inherited from interface com.alibaba.fastjson2.reader.ObjectReader
HASH_TYPE, VALUE_NAME
-
-
Constructor Summary
Constructors Constructor Description ObjectReaderInterface(Class objectClass, String typeKey, String typeName, long features, Supplier creator, Function buildFunction, FieldReader[] fieldReaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TcreateInstance(long features)TcreateInstance(Map map, long features)TreadJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)TreadObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)-
Methods inherited from class com.alibaba.fastjson2.reader.ObjectReaderAdapter
apply, autoType, autoType, autoType, autoType, createInstance, createInstance0, getBuildFunction, getFeatures, getFieldOrdinal, getFieldReader, getFieldReaderLCase, getFieldReaders, getFieldReaderUL, getTypeKey, getTypeKeyHash, initDefaultValue, initStringFieldAsEmpty, readArrayMappingJSONBObject, readArrayMappingJSONBObject0, readArrayMappingObject, readFieldValue
-
Methods inherited from class com.alibaba.fastjson2.reader.ObjectReaderBean
acceptExtra, checkAutoType, checkAutoType, checkAutoType0, getAutoTypeBeforeHandler, getObjectClass, processExtra, processExtra, processObjectInputSingleItemArray, readFieldValueWithLCase, readObject, setAutoTypeBeforeHandler
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alibaba.fastjson2.reader.ObjectReader
accept, acceptExtra, createInstance, createInstance, createInstance, createInstance, createInstanceNoneDefaultConstructor, getFieldReader, readObject, readObject, readObject, setFieldValue, setFieldValue, setFieldValue
-
-
-
-
Method Detail
-
readJSONBObject
public T readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
- Specified by:
readJSONBObjectin interfaceObjectReader<T>- Overrides:
readJSONBObjectin classObjectReaderAdapter<T>- Returns:
ObjectReader
-
readObject
public T readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
- Specified by:
readObjectin interfaceObjectReader<T>- Overrides:
readObjectin classObjectReaderBean<T>- Returns:
ObjectReader
-
createInstance
public T createInstance(long features)
- Specified by:
createInstancein interfaceObjectReader<T>- Overrides:
createInstancein classObjectReaderAdapter<T>- Returns:
ObjectReader
-
createInstance
public T createInstance(Map map, long features)
- Specified by:
createInstancein interfaceObjectReader<T>- Overrides:
createInstancein classObjectReaderAdapter<T>- Returns:
ObjectReader
-
-