|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.iotabits.util.ReflectionUtil
This is a Booch package of static methods that assist with reflection-based programming.
This version is just enough to support the Reflective Visitor idiom - no more, no less.
Constructor Summary | |
ReflectionUtil()
|
Method Summary | |
static java.lang.reflect.Method |
findCovariantMethod(java.lang.Class clz,
java.lang.String methodName,
java.lang.Class[] paramTypes)
We look for a method that matches name and the types of the passed in paramtypes in the given class and return it. |
static java.lang.Class[] |
getClassInterfacesSupersAndSuperinterfaces(java.lang.Class clazz)
Returns an array of the given class, all its superclasses, its superclass, its interfaces, etc, through Object.class. |
static java.util.List |
getSuperclasses(java.lang.Class clazz)
Return the list of all the superclasses of a given class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReflectionUtil()
Method Detail |
public static java.lang.reflect.Method findCovariantMethod(java.lang.Class clz, java.lang.String methodName, java.lang.Class[] paramTypes) throws java.lang.NoSuchMethodException
clz
- methodName
- paramTypes
-
java.lang.NoSuchMethodException
public static java.lang.Class[] getClassInterfacesSupersAndSuperinterfaces(java.lang.Class clazz)
clazz
- The starting point.
public static java.util.List getSuperclasses(java.lang.Class clazz)
clazz
- The class to start from.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |