public class FieldInfo extends Object implements Comparable<FieldInfo>
| Constructor and Description |
|---|
FieldInfo(String name,
Class<?> declaringClass,
Class<?> fieldClass,
Type fieldType,
Field field) |
FieldInfo(String name,
Class<?> declaringClass,
Class<?> fieldClass,
Type fieldType,
Field field,
int ordinal,
int serialzeFeatures) |
FieldInfo(String name,
Method method,
Field field) |
FieldInfo(String name,
Method method,
Field field,
Class<?> clazz,
Type type) |
FieldInfo(String name,
Method method,
Field field,
Class<?> clazz,
Type type,
int ordinal,
int serialzeFeatures) |
FieldInfo(String name,
Method method,
Field field,
int ordinal,
int serialzeFeatures) |
FieldInfo(String name,
Method method,
Field field,
int ordinal,
int serialzeFeatures,
String label) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FieldInfo o) |
String |
gerQualifiedName() |
Object |
get(Object javaObject) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Class<?> |
getDeclaringClass() |
Field |
getField() |
Class<?> |
getFieldClass() |
Type |
getFieldType() |
static Type |
getFieldType(Class<?> clazz,
Type type,
Type fieldType) |
String |
getFormat() |
static Type |
getInheritGenericType(Class<?> clazz,
TypeVariable<?> tv) |
String |
getLabel() |
Member |
getMember() |
Method |
getMethod() |
String |
getName() |
int |
getSerialzeFeatures() |
boolean |
isGetOnly() |
void |
set(Object javaObject,
Object value) |
void |
setAccessible(boolean flag) |
String |
toString() |
public FieldInfo(String name, Class<?> declaringClass, Class<?> fieldClass, Type fieldType, Field field)
public FieldInfo(String name, Class<?> declaringClass, Class<?> fieldClass, Type fieldType, Field field, int ordinal, int serialzeFeatures)
public FieldInfo(String name, Method method, Field field, int ordinal, int serialzeFeatures)
public FieldInfo(String name, Method method, Field field, int ordinal, int serialzeFeatures, String label)
public String getLabel()
public static Type getInheritGenericType(Class<?> clazz, TypeVariable<?> tv)
public Class<?> getDeclaringClass()
public Class<?> getFieldClass()
public Type getFieldType()
public String getName()
public String gerQualifiedName()
public Member getMember()
public Method getMethod()
public Field getField()
public int compareTo(FieldInfo o)
compareTo in interface Comparable<FieldInfo>public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
public String getFormat()
public Object get(Object javaObject) throws IllegalAccessException, InvocationTargetException
public void set(Object javaObject, Object value) throws IllegalAccessException, InvocationTargetException
public void setAccessible(boolean flag)
throws SecurityException
SecurityExceptionpublic boolean isGetOnly()
public int getSerialzeFeatures()
Copyright © 2012–2020 Alibaba Group. All rights reserved.