com.alibaba.fastjson.util
类 FieldInfo

java.lang.Object
  继承者 com.alibaba.fastjson.util.FieldInfo
所有已实现的接口:
Comparable<FieldInfo>

public class FieldInfo
extends Object
implements Comparable<FieldInfo>


构造方法摘要
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)
           
 
方法摘要
 int compareTo(FieldInfo o)
           
 String gerQualifiedName()
           
 Object get(Object javaObject)
           
<T extends Annotation>
T
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)
           
 Member getMember()
           
 Method getMethod()
           
 String getName()
           
 boolean isGetOnly()
           
 void set(Object javaObject, Object value)
           
 void setAccessible(boolean flag)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

FieldInfo

public FieldInfo(String name,
                 Class<?> declaringClass,
                 Class<?> fieldClass,
                 Type fieldType,
                 Field field,
                 int ordinal,
                 int serialzeFeatures)

FieldInfo

public FieldInfo(String name,
                 Method method,
                 Field field)

FieldInfo

public FieldInfo(String name,
                 Method method,
                 Field field,
                 int ordinal,
                 int serialzeFeatures)

FieldInfo

public FieldInfo(String name,
                 Method method,
                 Field field,
                 Class<?> clazz,
                 Type type)

FieldInfo

public FieldInfo(String name,
                 Method method,
                 Field field,
                 Class<?> clazz,
                 Type type,
                 int ordinal,
                 int serialzeFeatures)
方法详细信息

getFieldType

public static Type getFieldType(Class<?> clazz,
                                Type type,
                                Type fieldType)

getInheritGenericType

public static Type getInheritGenericType(Class<?> clazz,
                                         TypeVariable<?> tv)

toString

public String toString()
覆盖:
Object 中的 toString

getDeclaringClass

public Class<?> getDeclaringClass()

getFieldClass

public Class<?> getFieldClass()

getFieldType

public Type getFieldType()

getName

public String getName()

gerQualifiedName

public String gerQualifiedName()

getMember

public Member getMember()

getMethod

public Method getMethod()

getField

public Field getField()

compareTo

public int compareTo(FieldInfo o)
指定者:
接口 Comparable<FieldInfo> 中的 compareTo

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationClass)

get

public Object get(Object javaObject)
           throws IllegalAccessException,
                  InvocationTargetException
抛出:
IllegalAccessException
InvocationTargetException

set

public void set(Object javaObject,
                Object value)
         throws IllegalAccessException,
                InvocationTargetException
抛出:
IllegalAccessException
InvocationTargetException

setAccessible

public void setAccessible(boolean flag)
                   throws SecurityException
抛出:
SecurityException

isGetOnly

public boolean isGetOnly()


Copyright © 2012-2015 Alibaba Group. All Rights Reserved.