public class EnumDeserializer extends Object implements ObjectDeserializer
| 构造器和说明 |
|---|
EnumDeserializer(Class<?> enumClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
<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() |
Enum<?> |
valueOf(int ordinal) |
public EnumDeserializer(Class<?> enumClass)
public Enum<?> valueOf(int ordinal)
public <T> T deserialze(DefaultJSONParser parser, Type type, Object fieldName)
ObjectDeserializerIn 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 在接口中 ObjectDeserializerparser - context DefaultJSONParser being deserializedtype - The type of the Object to deserialize tofieldName - parent object field nameTpublic int getFastMatchToken()
getFastMatchToken 在接口中 ObjectDeserializerCopyright © 2012–2016 Alibaba Group. All rights reserved.