public class FieldInfo extends Object implements Comparable<FieldInfo>
| 构造器和说明 |
|---|
FieldInfo(String name,
Class<?> declaringClass,
Class<?> fieldClass,
Type fieldType,
Method method,
Field field) |
FieldInfo(String name,
Method method,
Field field) |
FieldInfo(String name,
Method method,
Field field,
Class<?> clazz,
Type type) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(FieldInfo o) |
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) |
static Type |
getInheritGenericType(Class<?> clazz,
TypeVariable<?> tv) |
Method |
getMethod() |
String |
getName() |
boolean |
isGetOnly() |
void |
set(Object javaObject,
Object value) |
void |
setAccessible(boolean flag) |
String |
toString() |
public FieldInfo(String name, Class<?> declaringClass, Class<?> fieldClass, Type fieldType, Method method, Field field)
public static Type getInheritGenericType(Class<?> clazz, TypeVariable<?> tv)
public Class<?> getDeclaringClass()
public Class<?> getFieldClass()
public Type getFieldType()
public String getName()
public Method getMethod()
public Field getField()
public int compareTo(FieldInfo o)
compareTo 在接口中 Comparable<FieldInfo>public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
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
public boolean isGetOnly()
Copyright © 2012-2013 Alibaba Group. All Rights Reserved.