Class ContextObjectDeserializer
- java.lang.Object
-
- com.alibaba.fastjson.parser.deserializer.ContextObjectDeserializer
-
- All Implemented Interfaces:
ObjectDeserializer
- Direct Known Subclasses:
AbstractDateDeserializer,CalendarCodec,Jdk8DateCodec,MapDeserializer
public abstract class ContextObjectDeserializer extends Object implements ObjectDeserializer
-
-
Constructor Summary
Constructors Constructor Description ContextObjectDeserializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T> Tdeserialze(DefaultJSONParser parser, Type type, Object fieldName)fastjson invokes this call-back method during deserialization when it encounters a field of the specified type.abstract <T> Tdeserialze(DefaultJSONParser parser, Type type, Object fieldName, String format, int features)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alibaba.fastjson.parser.deserializer.ObjectDeserializer
getFastMatchToken
-
-
-
-
Method Detail
-
deserialze
public <T> T deserialze(DefaultJSONParser parser, Type type, Object fieldName)
Description copied from interface:ObjectDeserializerfastjson invokes this call-back method during deserialization when it encounters a field of the specified type.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.- Specified by:
deserialzein interfaceObjectDeserializer- Parameters:
parser- context DefaultJSONParser being deserializedtype- The type of the Object to deserialize tofieldName- parent object field name- Returns:
- a deserialized object of the specified type which is a subclass of
T
-
deserialze
public abstract <T> T deserialze(DefaultJSONParser parser, Type type, Object fieldName, String format, int features)
-
-