com.alibaba.fastjson.serializer
Class FieldSerializer
java.lang.Object
com.alibaba.fastjson.serializer.FieldSerializer
- All Implemented Interfaces:
- Comparable<FieldSerializer>
- Direct Known Subclasses:
- ObjectFieldSerializer
public abstract class FieldSerializer
- extends Object
- implements Comparable<FieldSerializer>
- Author:
- wenshao
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fieldInfo
protected final FieldInfo fieldInfo
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
- Throws:
IOException
compareTo
public int compareTo(FieldSerializer o)
- Specified by:
compareTo
in interface Comparable<FieldSerializer>
getPropertyValue
public Object getPropertyValue(Object object)
throws Exception
- Throws:
Exception
writeProperty
public abstract void writeProperty(JSONSerializer serializer,
Object propertyValue)
throws Exception
- Throws:
Exception
Copyright © 2012 Alibaba Group. All Rights Reserved.