public class FieldInfo extends Object implements Comparable<FieldInfo>
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
int |
parserFeatures |
int |
serialzeFeatures |
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
alternateName(String name) |
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) |
String |
getFormat() |
static Type |
getInheritGenericType(Class<?> clazz,
TypeVariable<?> tv) |
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 String format
public FieldInfo(String name, Class<?> declaringClass, Class<?> fieldClass, Type fieldType, Field field, int ordinal, int serialzeFeatures, int parserFeatures)
public <T extends Annotation> T getAnnation(Class<T> annotationClass)
public static Type getInheritGenericType(Class<?> clazz, TypeVariable<?> tv)
public Member getMember()
public int compareTo(FieldInfo o)
compareTo 在接口中 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
public boolean alternateName(String name)
Copyright © 2012–2016 Alibaba Group. All rights reserved.