public abstract class FieldSerializer extends Object
| Constructor and Description |
|---|
FieldSerializer(FieldInfo fieldInfo) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected final FieldInfo fieldInfo
public FieldSerializer(FieldInfo fieldInfo)
public boolean isWriteNull()
public Field getField()
public String getName()
public Method getMethod()
public void writePrefix(JSONSerializer serializer) throws IOException
IOExceptionpublic abstract void writeProperty(JSONSerializer serializer, Object propertyValue) throws Exception
Exceptionpublic abstract void writeValue(JSONSerializer serializer, Object propertyValue) throws Exception
ExceptionCopyright © 2016 jufeng. All rights reserved.