|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tlc.util.ClassUtils
Provides a set of static utility methods for working with Classes
Method Summary | |
static boolean |
doesExtend(java.lang.Class c,
java.lang.Class parent)
Return true if Class c is as subclass of parent |
static boolean |
doesImplement(java.lang.Class c,
java.lang.Class iface)
|
static java.lang.String |
getFriendlyClassName(java.lang.Class c)
|
static boolean |
isAbstractClass(java.lang.Class c)
Return true if the given class is abstract |
static boolean |
isRunnable(java.lang.Class c)
Return true if the given class implements the Runnable interface |
static java.util.List |
listAllInterfaces(java.lang.Class c)
List all interfaces implemented by the given class |
static java.util.List |
listAllSuperClasses(java.lang.Class c)
Returns a List of all super classes of the given class |
static java.lang.String[] |
listBeanProperties(java.lang.Class c)
Return a 'friendly-name' list of public JavaBean 'properties' - that is, all accessor methods of the form getAbc() with the 'get' removed and the first letter of the 'property' converted to lower case. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String[] listBeanProperties(java.lang.Class c)
c
- Class
public static java.util.List listAllInterfaces(java.lang.Class c)
c
- Class
public static java.util.List listAllSuperClasses(java.lang.Class c)
c
- Class
public static boolean isRunnable(java.lang.Class c)
c
- Class
public static boolean isAbstractClass(java.lang.Class c)
c
- Class
public static boolean doesExtend(java.lang.Class c, java.lang.Class parent)
c
- Class under testparent
- parent Class
public static boolean doesImplement(java.lang.Class c, java.lang.Class iface)
c
- Class under testiface
- an interface
public static java.lang.String getFriendlyClassName(java.lang.Class c)
c
- Class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |