com.alibaba.fastjson.serializer
类 FieldSerializer

java.lang.Object
  继承者 com.alibaba.fastjson.serializer.FieldSerializer
直接已知子类:
ObjectFieldSerializer

public abstract class FieldSerializer
extends Object

作者:
wenshao

构造方法摘要
FieldSerializer(FieldInfo fieldInfo)
           
 
方法摘要
 Field getField()
           
 Method getMethod()
           
 String getName()
           
 Object getPropertyValue(Object object)
           
 boolean isWriteNull()
           
 void writePrefix(JSONSerializer serializer)
           
abstract  void writeProperty(JSONSerializer serializer, Object propertyValue)
           
abstract  void writeValue(JSONSerializer serializer, Object propertyValue)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

FieldSerializer

public FieldSerializer(FieldInfo fieldInfo)
方法详细信息

isWriteNull

public boolean isWriteNull()

getField

public Field getField()

getName

public String getName()

getMethod

public Method getMethod()

writePrefix

public void writePrefix(JSONSerializer serializer)
                 throws IOException
抛出:
IOException

getPropertyValue

public Object getPropertyValue(Object object)
                        throws Exception
抛出:
Exception

writeProperty

public abstract void writeProperty(JSONSerializer serializer,
                                   Object propertyValue)
                            throws Exception
抛出:
Exception

writeValue

public abstract void writeValue(JSONSerializer serializer,
                                Object propertyValue)
                         throws Exception
抛出:
Exception


Copyright © 2012-2014 Alibaba Group. All Rights Reserved.