public class ThrowableDeserializer extends JavaBeanDeserializer
beanInfo
Constructor and Description |
---|
ThrowableDeserializer(ParserConfig mapping,
Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
<T> T |
deserialze(DefaultJSONParser parser,
Type type,
Object fieldName)
fastjson invokes this call-back method during deserialization when it encounters a field of the
specified type.
|
int |
getFastMatchToken() |
createInstance, createInstance, deserialze, deserialzeArrayMapping, getFieldDeserializer, getFieldDeserializer, getFieldDeserializer, getFieldType, parseField, parseField, smartMatch, smartMatch
public ThrowableDeserializer(ParserConfig mapping, Class<?> clazz)
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
deserialze
in class JavaBeanDeserializer
parser
- context DefaultJSONParser being deserializedtype
- The type of the Object to deserialize tofieldName
- parent object field nameT
public int getFastMatchToken()
getFastMatchToken
in interface ObjectDeserializer
getFastMatchToken
in class JavaBeanDeserializer
Copyright © 2012–2022 Alibaba Group. All rights reserved.