com.jdon.util
类 ClassUtil

java.lang.Object
  继承者 com.jdon.util.ClassUtil

public class ClassUtil
extends Object


构造方法摘要
ClassUtil()
           
 
方法摘要
static Class finddAnnotationForMethod(Class clazz, Class annotationClass)
           
static Method finddAnnotationForMethod(Method m, Class annotationClass)
           
static Field[] getAllDecaredFields(Class clazz)
           
static Method[] getAllDecaredMethods(Class clazz)
           
static Class[] getAllInterfaces(Class clazz)
           
static Class[] getAllSuperclasses(Class cls)
           
static Field getDecaredField(Class clazz, String name)
           
static Class[] getParentAllInterfaces(Class pojoClass)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ClassUtil

public ClassUtil()
方法详细信息

getParentAllInterfaces

public static Class[] getParentAllInterfaces(Class pojoClass)

getAllInterfaces

public static Class[] getAllInterfaces(Class clazz)

getAllDecaredFields

public static Field[] getAllDecaredFields(Class clazz)

finddAnnotationForMethod

public static Class finddAnnotationForMethod(Class clazz,
                                             Class annotationClass)

finddAnnotationForMethod

public static Method finddAnnotationForMethod(Method m,
                                              Class annotationClass)

getAllDecaredMethods

public static Method[] getAllDecaredMethods(Class clazz)

getAllSuperclasses

public static Class[] getAllSuperclasses(Class cls)

getDecaredField

public static Field getDecaredField(Class clazz,
                                    String name)
                             throws NoSuchFieldException
抛出:
NoSuchFieldException


Copyright © 2013. All Rights Reserved.