Package com.alibaba.fastjson2.reader
Interface ObjectReader<T>
- All Known Implementing Classes:
ApacheLang3Support.PairReader,ObjectArrayReader,ObjectReader1,ObjectReader10,ObjectReader11,ObjectReader12,ObjectReader2,ObjectReader3,ObjectReader4,ObjectReader5,ObjectReader6,ObjectReader7,ObjectReader8,ObjectReader9,ObjectReaderAdapter,ObjectReaderBean,ObjectReaderImplBitSet,ObjectReaderImplByte,ObjectReaderImplDate,ObjectReaderImplEnum,ObjectReaderImplField,ObjectReaderImplFromBoolean,ObjectReaderImplFromInt,ObjectReaderImplFromLong,ObjectReaderImplFromString,ObjectReaderImplInstant,ObjectReaderImplInt32Array,ObjectReaderImplInt32ValueArray,ObjectReaderImplInt64Array,ObjectReaderImplInt64ValueArray,ObjectReaderImplJSONP,ObjectReaderImplList,ObjectReaderImplListInt64,ObjectReaderImplListStr,ObjectReaderImplMap,ObjectReaderImplMapMultiValueType,ObjectReaderImplMethod,ObjectReaderImplObject,ObjectReaderImplShort,ObjectReaderImplStringArray,ObjectReaderImplValue,ObjectReaderImplValueInt,ObjectReaderImplValueString,ObjectReaderInterface,ObjectReaderMisc,ObjectReaderNoneDefaultConstructor
public interface ObjectReader<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidacceptExtra(Object object, String fieldName, Object fieldValue) default voidacceptExtra(Object object, String fieldName, Object fieldValue, long features) default ObjectReaderautoType(JSONReader.Context context, long typeHash) default ObjectReaderautoType(ObjectReaderProvider provider, long typeHash) default Tdefault TcreateInstance(long features) default TcreateInstance(Collection collection) default TcreateInstance(Collection collection, long features) default TcreateInstance(Collection collection, JSONReader.Feature... features) default TcreateInstance(Map map, long features) default TcreateInstance(Map map, JSONReader.Feature... features) default Tdefault Functiondefault longFeatures enabled by ObjectReaderdefault FieldReadergetFieldReader(long hashCode) default FieldReadergetFieldReader(String fieldName) default FieldReadergetFieldReaderLCase(long hashCode) default Stringdefault longdefault TreadArrayMappingJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) default TreadArrayMappingObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) default TreadJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) default TreadObject(JSONReader jsonReader) default TreadObject(JSONReader jsonReader, long features) readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) default booleansetFieldValue(Object object, String fieldName, long fieldNameHashCode, int value) default booleansetFieldValue(Object object, String fieldName, long fieldNameHashCode, long value)
-
Field Details
-
HASH_TYPE
static final long HASH_TYPE -
VALUE_NAME
- See Also:
-
-
Method Details
-
createInstance
- Returns:
ObjectReader- Throws:
UnsupportedOperationException- If the method is not overloaded or otherwise
-
createInstance
- Returns:
ObjectReader- Throws:
UnsupportedOperationException- If the method is not overloaded or otherwise
-
createInstance
- Returns:
ObjectReader- Throws:
UnsupportedOperationException- If the method is not overloaded or otherwise
-
createInstance
- Returns:
ObjectReader- Throws:
UnsupportedOperationException- If the method is not overloaded or otherwise
-
createInstance
- Returns:
ObjectReader- Throws:
UnsupportedOperationException- If the method is not overloaded or otherwise
-
acceptExtra
-
acceptExtra
-
createInstance
-
createInstance
- Returns:
ObjectReader- Throws:
JSONException- If a suitable ObjectReader is not found
-
createInstanceNoneDefaultConstructor
- Throws:
UnsupportedOperationException- If the method is not overloaded or otherwise
-
getFeatures
default long getFeatures()Features enabled by ObjectReader -
getTypeKey
-
getTypeKeyHash
default long getTypeKeyHash() -
getObjectClass
-
getFieldReader
-
getFieldReaderLCase
-
setFieldValue
-
setFieldValue
-
getFieldReader
-
getBuildFunction
-
autoType
-
autoType
-
readJSONBObject
- Returns:
ObjectReader- Throws:
JSONException- If a suitable ObjectReader is not found
-
readArrayMappingJSONBObject
default T readArrayMappingJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) - Returns:
ObjectReader- Throws:
UnsupportedOperationException- If the method is not overloaded or otherwise
-
readArrayMappingObject
default T readArrayMappingObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) - Returns:
ObjectReader- Throws:
UnsupportedOperationException- If the method is not overloaded or otherwise
-
readObject
- Returns:
ObjectReader
-
readObject
-
readObject
- Returns:
ObjectReader- Throws:
JSONException- If a suitable ObjectReader is not found
-