public class FieldInfo extends Object implements Comparable<FieldInfo>
Modifier and Type | Field and Description |
---|---|
String[] |
alternateNames |
Class<?> |
declaringClass |
Field |
field |
boolean |
fieldAccess |
Class<?> |
fieldClass |
boolean |
fieldTransient |
Type |
fieldType |
String |
format |
boolean |
getOnly |
boolean |
isEnum |
boolean |
jsonDirect |
String |
label |
Method |
method |
String |
name |
char[] |
name_chars |
long |
nameHashCode |
int |
parserFeatures |
int |
serialzeFeatures |
boolean |
unwrapped |
Constructor and Description |
---|
FieldInfo(String name,
Class<?> declaringClass,
Class<?> fieldClass,
Type fieldType,
Field field,
int ordinal,
int serialzeFeatures,
int parserFeatures) |
FieldInfo(String name,
Method method,
Field field,
Class<?> clazz,
Type type,
int ordinal,
int serialzeFeatures,
int parserFeatures,
JSONField fieldAnnotation,
JSONField methodAnnotation,
String label) |
FieldInfo(String name,
Method method,
Field field,
Class<?> clazz,
Type type,
int ordinal,
int serialzeFeatures,
int parserFeatures,
JSONField fieldAnnotation,
JSONField methodAnnotation,
String label,
Map<TypeVariable,Type> genericInfo) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FieldInfo o) |
Object |
get(Object javaObject) |
<T extends Annotation> |
getAnnation(Class<T> annotationClass) |
JSONField |
getAnnotation() |
static Type |
getFieldType(Class<?> clazz,
Type type,
Type fieldType) |
static Type |
getFieldType(Class<?> clazz,
Type type,
Type fieldType,
Map<TypeVariable,Type> genericInfo) |
String |
getFormat() |
Member |
getMember() |
void |
set(Object javaObject,
Object value) |
void |
setAccessible() |
String |
toString() |
public final String name
public final Method method
public final Field field
public final Class<?> fieldClass
public final Type fieldType
public final Class<?> declaringClass
public final boolean getOnly
public final int serialzeFeatures
public final int parserFeatures
public final String label
public final boolean fieldAccess
public final boolean fieldTransient
public final char[] name_chars
public final boolean isEnum
public final boolean jsonDirect
public final boolean unwrapped
public final String format
public final String[] alternateNames
public final long nameHashCode
public FieldInfo(String name, Class<?> declaringClass, Class<?> fieldClass, Type fieldType, Field field, int ordinal, int serialzeFeatures, int parserFeatures)
public FieldInfo(String name, Method method, Field field, Class<?> clazz, Type type, int ordinal, int serialzeFeatures, int parserFeatures, JSONField fieldAnnotation, JSONField methodAnnotation, String label)
public <T extends Annotation> T getAnnation(Class<T> annotationClass)
public static Type getFieldType(Class<?> clazz, Type type, Type fieldType, Map<TypeVariable,Type> genericInfo)
public Member getMember()
public int compareTo(FieldInfo o)
compareTo
in interface Comparable<FieldInfo>
public JSONField getAnnotation()
public String getFormat()
public Object get(Object javaObject) throws IllegalAccessException, InvocationTargetException
public void set(Object javaObject, Object value) throws IllegalAccessException, InvocationTargetException
public void setAccessible() throws SecurityException
SecurityException
Copyright © 2012–2022 Alibaba Group. All rights reserved.