Package com.alibaba.fastjson2.reader
Class ObjectReaderImplFromInt<T>
- java.lang.Object
-
- com.alibaba.fastjson2.reader.ObjectReaderImplFromInt<T>
-
- All Implemented Interfaces:
ObjectReader<T>
public final class ObjectReaderImplFromInt<T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassobjectClass-
Fields inherited from interface com.alibaba.fastjson2.reader.ObjectReader
HASH_TYPE, VALUE_NAME
-
-
Constructor Summary
Constructors Constructor Description ObjectReaderImplFromInt(Class<T> objectClass, IntFunction creator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TcreateInstance(long features)ClassgetObjectClass()TreadJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)TreadObject(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, wait
-
Methods inherited from interface com.alibaba.fastjson2.reader.ObjectReader
accept, acceptExtra, acceptExtra, autoType, autoType, createInstance, createInstance, createInstance, createInstance, createInstance, createInstance, createInstanceNoneDefaultConstructor, getBuildFunction, getFeatures, getFieldReader, getFieldReader, getFieldReaderLCase, getTypeKey, getTypeKeyHash, readArrayMappingJSONBObject, readArrayMappingObject, readObject, readObject, readObject, setFieldValue, setFieldValue, setFieldValue
-
-
-
-
Field Detail
-
objectClass
protected final Class objectClass
-
-
Constructor Detail
-
ObjectReaderImplFromInt
public ObjectReaderImplFromInt(Class<T> objectClass, IntFunction creator)
-
-
Method Detail
-
readJSONBObject
public T readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
- Specified by:
readJSONBObjectin interfaceObjectReader<T>- Returns:
ObjectReader
-
readObject
public T readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
- Returns:
ObjectReader
-
getObjectClass
public Class getObjectClass()
- Specified by:
getObjectClassin interfaceObjectReader<T>
-
createInstance
public T createInstance(long features)
- Specified by:
createInstancein interfaceObjectReader<T>- Returns:
ObjectReader
-
-