public class JavaBeanDeserializer extends Object implements ObjectDeserializer
Modifier and Type | Field and Description |
---|---|
JavaBeanInfo |
beanInfo |
Constructor and Description |
---|
JavaBeanDeserializer(ParserConfig config,
Class<?> clazz) |
JavaBeanDeserializer(ParserConfig config,
Class<?> clazz,
Type type) |
JavaBeanDeserializer(ParserConfig config,
JavaBeanInfo beanInfo) |
public final JavaBeanInfo beanInfo
public JavaBeanDeserializer(ParserConfig config, Class<?> clazz)
public JavaBeanDeserializer(ParserConfig config, Class<?> clazz, Type type)
public JavaBeanDeserializer(ParserConfig config, JavaBeanInfo beanInfo)
public FieldDeserializer getFieldDeserializer(String key)
public FieldDeserializer getFieldDeserializer(String key, int[] setFlags)
public FieldDeserializer getFieldDeserializer(long hash)
public Object createInstance(DefaultJSONParser parser, Type type)
public <T> T deserialze(DefaultJSONParser parser, Type type, Object fieldName)
ObjectDeserializer
In the implementation of this call-back method, you should consider invoking
JSON.parseObject(String, Type, Feature[])
method to create objects
for any non-trivial field of the returned object.
deserialze
in interface ObjectDeserializer
parser
- context DefaultJSONParser being deserializedtype
- The type of the Object to deserialize tofieldName
- parent object field nameT
public <T> T deserialze(DefaultJSONParser parser, Type type, Object fieldName, int features)
public <T> T deserialzeArrayMapping(DefaultJSONParser parser, Type type, Object fieldName, Object object)
public boolean parseField(DefaultJSONParser parser, String key, Object object, Type objectType, Map<String,Object> fieldValues)
public boolean parseField(DefaultJSONParser parser, String key, Object object, Type objectType, Map<String,Object> fieldValues, int[] setFlags)
public FieldDeserializer smartMatch(String key)
public FieldDeserializer smartMatch(String key, int[] setFlags)
public int getFastMatchToken()
getFastMatchToken
in interface ObjectDeserializer
public Object createInstance(Map<String,Object> map, ParserConfig config) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public Type getFieldType(int ordinal)
Copyright © 2012–2022 Alibaba Group. All rights reserved.