| Modifier and Type | Method and Description |
|---|---|
static Field |
getAccesibleField(Class<?> clazz,
String name) |
static Method |
getAccesibleMethod(Class<?> clazz,
String name)
First try to find a method with the same name.
|
static Map<String,Method> |
getAccesibleMethods(Class<?> clazz)
If the name of the method starts with get/is prefix (JavaBean
naming convention), the key in the map is the name of the corresponding
property.
|
static boolean |
isAccesibleMethod(Method method)
A read method:
is public
has no parameters
has non-void return type
its declaring class is not
Object
|
public static Map<String,Method> getAccesibleMethods(Class<?> clazz)
clazz - public static Method getAccesibleMethod(Class<?> clazz, String name)
clazz - name - nullpublic static Field getAccesibleField(Class<?> clazz, String name)
clazz - name - nullCopyright © 2013. All Rights Reserved.