public class FieldSerializer extends Object implements Comparable<FieldSerializer>
Constructor and Description |
---|
FieldSerializer(Class<?> beanType,
FieldInfo fieldInfo) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FieldSerializer o) |
Object |
getPropertyValue(Object object) |
Object |
getPropertyValueDirect(Object object) |
void |
writePrefix(JSONSerializer serializer) |
void |
writeValue(JSONSerializer serializer,
Object propertyValue) |
public final FieldInfo fieldInfo
public void writePrefix(JSONSerializer serializer) throws IOException
IOException
public Object getPropertyValueDirect(Object object) throws InvocationTargetException, IllegalAccessException
public Object getPropertyValue(Object object) throws InvocationTargetException, IllegalAccessException
public int compareTo(FieldSerializer o)
compareTo
in interface Comparable<FieldSerializer>
public void writeValue(JSONSerializer serializer, Object propertyValue) throws Exception
Exception
Copyright © 2012–2022 Alibaba Group. All rights reserved.