com.alibaba.fastjson.parser
Class ParserConfig
java.lang.Object
com.alibaba.fastjson.parser.ParserConfig
- Direct Known Subclasses:
- JavaBeanMapping
public class ParserConfig
- extends Object
- Author:
- wenshao
Method Summary |
FieldDeserializer |
createFieldDeserializer(ParserConfig mapping,
Class<?> clazz,
FieldInfo fieldInfo)
|
FieldDeserializer |
createFieldDeserializerWithoutASM(ParserConfig mapping,
Class<?> clazz,
FieldInfo fieldInfo)
|
ObjectDeserializer |
createJavaBeanDeserializer(Class<?> clazz,
Type type)
|
DefaultObjectDeserializer |
getDefaultSerializer()
|
IdentityHashMap<Type,ObjectDeserializer> |
getDerializers()
|
ObjectDeserializer |
getDeserializer(Class<?> clazz,
Type type)
|
ObjectDeserializer |
getDeserializer(FieldInfo fieldInfo)
|
ObjectDeserializer |
getDeserializer(Type type)
|
static Field |
getField(Class<?> clazz,
String fieldName)
|
Map<String,FieldDeserializer> |
getFieldDeserializers(Class<?> clazz)
|
static ParserConfig |
getGlobalInstance()
|
SymbolTable |
getSymbolTable()
|
boolean |
isAsmEnable()
|
boolean |
isPrimitive(Class<?> clazz)
|
void |
putDeserializer(Type type,
ObjectDeserializer deserializer)
|
void |
setAsmEnable(boolean asmEnable)
|
ParserConfig
public ParserConfig()
getGlobalInstance
public static ParserConfig getGlobalInstance()
getDefaultSerializer
public DefaultObjectDeserializer getDefaultSerializer()
isAsmEnable
public boolean isAsmEnable()
setAsmEnable
public void setAsmEnable(boolean asmEnable)
getSymbolTable
public SymbolTable getSymbolTable()
getDerializers
public IdentityHashMap<Type,ObjectDeserializer> getDerializers()
getDeserializer
public ObjectDeserializer getDeserializer(Type type)
getDeserializer
public ObjectDeserializer getDeserializer(Class<?> clazz,
Type type)
createJavaBeanDeserializer
public ObjectDeserializer createJavaBeanDeserializer(Class<?> clazz,
Type type)
createFieldDeserializer
public FieldDeserializer createFieldDeserializer(ParserConfig mapping,
Class<?> clazz,
FieldInfo fieldInfo)
createFieldDeserializerWithoutASM
public FieldDeserializer createFieldDeserializerWithoutASM(ParserConfig mapping,
Class<?> clazz,
FieldInfo fieldInfo)
putDeserializer
public void putDeserializer(Type type,
ObjectDeserializer deserializer)
getDeserializer
public ObjectDeserializer getDeserializer(FieldInfo fieldInfo)
isPrimitive
public boolean isPrimitive(Class<?> clazz)
getField
public static Field getField(Class<?> clazz,
String fieldName)
getFieldDeserializers
public Map<String,FieldDeserializer> getFieldDeserializers(Class<?> clazz)
Copyright © 2012
Alibaba Group. All Rights Reserved.