Package com.alibaba.fastjson2.reader
Class FieldReaderMapMethod<T>
- java.lang.Object
-
- com.alibaba.fastjson2.reader.FieldReader<T>
-
- com.alibaba.fastjson2.reader.FieldReaderObject<T>
-
- com.alibaba.fastjson2.reader.FieldReaderMapMethod<T>
-
- All Implemented Interfaces:
Comparable<FieldReader>
public class FieldReaderMapMethod<T> extends FieldReaderObject<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected BiConsumerarrayToMapDuplicateHandlerprotected StringarrayToMapKeyprotected TypevalueType-
Fields inherited from class com.alibaba.fastjson2.reader.FieldReaderObject
function, initReader
-
Fields inherited from class com.alibaba.fastjson2.reader.FieldReader
defaultValue, features, field, fieldClass, fieldName, fieldOffset, fieldType, format, locale, method, ordinal, schema
-
-
Constructor Summary
Constructors Constructor Description FieldReaderMapMethod(String fieldName, Type fieldType, Class fieldClass, int ordinal, long features, String format, Locale locale, Object defaultValue, JSONSchema schema, Method method, Field field, BiConsumer function, String arrayToMapKey, BiConsumer arrayToMapDuplicateHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidacceptAny(T object, Object fieldValue, long features)voidreadFieldValue(JSONReader jsonReader, T object)-
Methods inherited from class com.alibaba.fastjson2.reader.FieldReaderObject
accept, accept, accept, accept, accept, accept, accept, accept, accept, getFunction, getInitReader, getObjectReader, getObjectReader, processExtra, readFieldValue, readFieldValueJSONB
-
Methods inherited from class com.alibaba.fastjson2.reader.FieldReader
acceptDefaultValue, acceptExtra, addResolveTask, addResolveTask, belongTo, checkObjectAutoType, compareTo, getItemClass, getItemClassHash, getItemObjectReader, getItemObjectReader, getItemType, getObjectReader, isReadOnly, isUnwrapped, sameTo, supportAcceptType, toString
-
-
-
-
Field Detail
-
arrayToMapKey
protected final String arrayToMapKey
-
valueType
protected final Type valueType
-
arrayToMapDuplicateHandler
protected final BiConsumer arrayToMapDuplicateHandler
-
-
Constructor Detail
-
FieldReaderMapMethod
public FieldReaderMapMethod(String fieldName, Type fieldType, Class fieldClass, int ordinal, long features, String format, Locale locale, Object defaultValue, JSONSchema schema, Method method, Field field, BiConsumer function, String arrayToMapKey, BiConsumer arrayToMapDuplicateHandler)
-
-
Method Detail
-
acceptAny
protected void acceptAny(T object, Object fieldValue, long features)
- Overrides:
acceptAnyin classFieldReader<T>
-
readFieldValue
public void readFieldValue(JSONReader jsonReader, T object)
- Overrides:
readFieldValuein classFieldReaderObject<T>
-
-