|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zipxap.vfs.dal.utility.ReflectionUtility
public class ReflectionUtility
| Constructor Summary | |
|---|---|
ReflectionUtility()
|
|
| Method Summary | |
|---|---|
static int |
getAbstractionLevelsFromSubClassToBaseClass(java.lang.Class subClass,
java.lang.Class superClass)
Get the number of classes from superClass to subClass. |
static java.lang.reflect.Field |
getField(java.lang.Class clazz,
java.lang.String fieldName)
This method retrieves the first instance of a field matching fieldName (this field could be masking a field of the same name in a base class). |
static java.lang.reflect.Field[] |
getFields(java.lang.Class clazz)
Retrieve all fields in the specified class and all superclasses (except Object). |
static java.lang.reflect.Method |
getMethod(java.lang.Class clazz,
java.lang.String methodName)
Retrieve the method of the given name, regardless of access scope or arguments. |
static java.lang.reflect.Method |
getMethod(java.lang.Class clazz,
java.lang.String methodName,
int nArguments)
Retrieve the method of the given name with the given number of arguments, regardless of access scope. |
static java.lang.reflect.Method[] |
getMethods(java.lang.Class clazz)
Retrieve all fields in the specified class and all superclasses (except Object). |
static boolean |
isClassAClassBorSubclassOfB(java.lang.Class classA,
java.lang.Class classB)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionUtility()
| Method Detail |
|---|
public static boolean isClassAClassBorSubclassOfB(java.lang.Class classA,
java.lang.Class classB)
public static int getAbstractionLevelsFromSubClassToBaseClass(java.lang.Class subClass,
java.lang.Class superClass)
subClass - superClass -
public static java.lang.reflect.Method getMethod(java.lang.Class clazz,
java.lang.String methodName)
clazz - The class to searchmethodName - the method to search for
Method of the given name, regardless of access scope or
UCException - if there is more than one method with this name.
public static java.lang.reflect.Field getField(java.lang.Class clazz,
java.lang.String fieldName)
clazz - fieldName -
public static java.lang.reflect.Method getMethod(java.lang.Class clazz,
java.lang.String methodName,
int nArguments)
clazz - The class to searchmethodName - the method to retreive.nArguments - the number of arguments taken by the method to retreive.
Method of the given name, regardless of access scope or
UCException - if there is more than one method with this name.public static java.lang.reflect.Method[] getMethods(java.lang.Class clazz)
clazz - the class to retrieve the fields for.
public static java.lang.reflect.Field[] getFields(java.lang.Class clazz)
clazz - the class to retrieve the fields for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||