JavaBeanDeserializer (fastjson 1.1.26 API)

fastjson



com.alibaba.fastjson.parser.deserializer Class JavaBeanDeserializer

java.lang.Object
  extended by com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer
All Implemented Interfaces:
ObjectDeserializer
Direct Known Subclasses:
ASMJavaBeanDeserializer.InnerJavaBeanDeserializer, ThrowableDeserializer

public class JavaBeanDeserializer
extends Object
implements ObjectDeserializer


Constructor Summary
 
Method Summary
 FieldDeserializer
 Object
<T> T
deserialze(DefaultJSONParser parser, Type type, Object fieldName)
             Class<?> getClazz()
             int getFastMatchToken()
             Map<String,FieldDeserializer> getFieldDeserializerMap()
             Type getType()
             boolean parseField(DefaultJSONParser parser, String key, Object object, Type objectType, Map<String,Object> fieldValues)
             
Methods inherited from class java.lang.Object
 

Constructor Detail

JavaBeanDeserializer

public JavaBeanDeserializer(DeserializeBeanInfo beanInfo)

JavaBeanDeserializer

public JavaBeanDeserializer(ParserConfig config,
                            Class<?> clazz)

JavaBeanDeserializer

public JavaBeanDeserializer(ParserConfig config,
                            Class<?> clazz,
                            Type type)
Method Detail

getFieldDeserializerMap

public Map<String,FieldDeserializer> getFieldDeserializerMap()

getClazz

public Class<?> getClazz()

getType

public Type getType()

createFieldDeserializer

public FieldDeserializer createFieldDeserializer(ParserConfig mapping,
                                                 Class<?> clazz,
                                                 FieldInfo fieldInfo)

createInstance

public Object createInstance(DefaultJSONParser parser,
                             Type type)

deserialze

public <T> T deserialze(DefaultJSONParser parser,
                        Type type,
                        Object fieldName)
Specified by:
deserialze in interface ObjectDeserializer

parseField

public boolean parseField(DefaultJSONParser parser,
                          String key,
                          Object object,
                          Type objectType,
                          Map<String,Object> fieldValues)

getFastMatchToken

public int getFastMatchToken()
Specified by:
getFastMatchToken in interface ObjectDeserializer


Copyright © 2012 Alibaba Group. All Rights Reserved.