@Internal public final class Reflections extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.reflect.Field |
findField(java.lang.Class<?> clazz,
java.lang.String name)
Tries to find a public field with the given name on the given class.
|
static java.lang.reflect.Method |
findMethod(java.lang.Class<?> clazz,
java.lang.String name)
First tries to find a method with the same name, afterwards method
following JavaBean naming convention.
|
static boolean |
isMethodValid(java.lang.reflect.Method method)
A read method:
is public
has no parameters
has non-void return type
its declaring class is not
Object
|
public static java.lang.reflect.Method findMethod(java.lang.Class<?> clazz,
java.lang.String name)
clazz - name - nullpublic static java.lang.reflect.Field findField(java.lang.Class<?> clazz,
java.lang.String name)
clazz - name - nullpublic static boolean isMethodValid(java.lang.reflect.Method method)
Objectmethod - true if the given method is considered a read methodCopyright © 2013. All Rights Reserved.