| java.lang.Object net.sf.oval.internal.util.ReflectionUtils
ReflectionUtils | final public class ReflectionUtils (Code) | | author: Sebastian Thomschke |
Method Summary | |
public static Field | getField(Class clazz, String fieldName) | public static Field | getFieldForSetter(Method setter) Parameters: setter - Returns the corresponding field for a setter method. | public static Field | getFieldRecursive(Class clazz, String fieldName) | public static Object | getFieldValue(Field field, Object obj) | public static List<Method> | getInterfaceMethods(Method method) | public static Method | getMethod(Class> clazz, String methodName, Class>... parameterTypes) | public static Method | getSuperMethod(Method method) | public static String | guessFieldName(Method getter) | public static boolean | hasField(Class clazz, String fieldName) | public static boolean | hasMethod(Class> clazz, String methodName, Class>... parameterTypes) | public static Object | invokeMethod(Method method, Object obj, Object... args) | public static boolean | isClassPresent(String className) | public static boolean | isFinal(Member member) | public static boolean | isGetter(Method method) | public static boolean | isPackage(Member member) | public static boolean | isPrivate(Member member) | public static boolean | isProtected(Member member) | public static boolean | isSetter(Method method) | public static boolean | isStatic(Member member) | public static boolean | isTransient(Member member) | public static boolean | isVoidMethod(Method method) |
getField | public static Field getField(Class clazz, String fieldName)(Code) | | the field or null if the field does not exist |
getFieldForSetter | public static Field getFieldForSetter(Method setter)(Code) | | Parameters: setter - Returns the corresponding field for a setter method. Returns null if the method is not a JavaBean style setter or the field could not be located. |
isClassPresent | public static boolean isClassPresent(String className)(Code) | | |
isGetter | public static boolean isGetter(Method method)(Code) | | determines if a method is a JavaBean style getter method
|
isPackage | public static boolean isPackage(Member member)(Code) | | |
isPrivate | public static boolean isPrivate(Member member)(Code) | | |
isProtected | public static boolean isProtected(Member member)(Code) | | |
isSetter | public static boolean isSetter(Method method)(Code) | | determines if a method is a JavaBean style setter method
|
isTransient | public static boolean isTransient(Member member)(Code) | | |
isVoidMethod | public static boolean isVoidMethod(Method method)(Code) | | determines if a method is a void method
|
|
|