Package com.alibaba.fastjson2.reader
Class ObjectReaderImplValue<I,T>
- java.lang.Object
-
- com.alibaba.fastjson2.reader.ObjectReaderImplValue<I,T>
-
- All Implemented Interfaces:
ObjectReader<T>
public class ObjectReaderImplValue<I,T> extends Object implements ObjectReader<T>
-
-
Field Summary
-
Fields inherited from interface com.alibaba.fastjson2.reader.ObjectReader
HASH_TYPE, VALUE_NAME
-
-
Constructor Summary
Constructors Constructor Description ObjectReaderImplValue(Class<T> objectClass, Type valueType, Class<I> valueClass, long features, String format, Object defaultValue, JSONSchema schema, Constructor<T> constructor, Method factoryMethod, Function<I,T> function)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <I,T>
ObjectReaderImplValue<I,T>of(Class<T> objectClass, Class<I> valueClass, Method method)static <I,T>
ObjectReaderImplValue<I,T>of(Class<T> objectClass, Class<I> valueClass, Function<I,T> function)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, createInstance, createInstanceNoneDefaultConstructor, getBuildFunction, getFeatures, getFieldReader, getFieldReader, getFieldReaderLCase, getObjectClass, getTypeKey, getTypeKeyHash, readArrayMappingJSONBObject, readArrayMappingObject, readObject, readObject, readObject, setFieldValue, setFieldValue, setFieldValue
-
-
-
-
Method Detail
-
readJSONBObject
public T readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
- Specified by:
readJSONBObjectin interfaceObjectReader<I>- Returns:
ObjectReader
-
readObject
public T readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
- Specified by:
readObjectin interfaceObjectReader<I>- Returns:
ObjectReader
-
of
public static <I,T> ObjectReaderImplValue<I,T> of(Class<T> objectClass, Class<I> valueClass, Method method)
-
of
public static <I,T> ObjectReaderImplValue<I,T> of(Class<T> objectClass, Class<I> valueClass, Function<I,T> function)
-
-