List of all members.
Static Public Member Functions |
static Field | getField (Class<?> clazz, String fieldName) |
| Returns the field with the specified name.
|
static< T > T | get (Object target, String fieldName) |
static< T > T | get (Object target, Field field) |
static void | set (Object target, String fieldName, Object value) |
static List< Field > | getAllFields (Class<?> clazz) |
| Returns a list of all the fields for a class and all of its relevant superclasses.
|
static List< Field > | getAllFields (Class<?> clazz, boolean includeStaticFields) |
| Returns a list of all the fields for a class and all of its relevant superclasses.
|
static boolean | isCollection (Field f) |
static boolean | isMap (Field f) |
static Method | getMethod (Class<?> clazz, String methodName, Object...arguments) |
| Returns the method with the specified name and matching arguments.
|
static< T > T | invoke (Object target, String methodName, Object...arguments) |
static< T > T | invokeStatic (Class<?extends Object > clazz, String methodName, Object...arguments) |
static Method | getDeclaredMethod (Class clazz, String name, Object...args) |
static< T > T | construct (Class< T > clazz, Object...arguments) throws InstantiationException |
static< T > Constructor< T > | getDeclaredConstructor (Class< T > clazz, Object...args) |
Static Package Functions |
| [static initializer] |
static String | getClassNames (Object...list) |
Member Function Documentation
[static initializer] |
( |
| ) |
[static, package] |
static <T> T construct |
( |
Class< T > |
clazz, |
|
|
Object... |
arguments |
|
) |
| throws InstantiationException [static] |
static <T> T get |
( |
Object |
target, |
|
|
Field |
field |
|
) |
| [static] |
static <T> T get |
( |
Object |
target, |
|
|
String |
fieldName |
|
) |
| [static] |
static List<Field> getAllFields |
( |
Class<?> |
clazz | ) |
[static] |
static List<Field> getAllFields |
( |
Class<?> |
clazz, |
|
|
boolean |
includeStaticFields |
|
) |
| [static] |
- Parameters:
-
clazz | |
includeStaticFields | |
- Returns:
static String getClassNames |
( |
Object... |
list | ) |
[static, package] |
static <T> Constructor<T> getDeclaredConstructor |
( |
Class< T > |
clazz, |
|
|
Object... |
args |
|
) |
| [static] |
static Method getDeclaredMethod |
( |
Class |
clazz, |
|
|
String |
name, |
|
|
Object... |
args |
|
) |
| [static] |
static Field getField |
( |
Class<?> |
clazz, |
|
|
String |
fieldName |
|
) |
| [static] |
This method will climb up the class hierarchy until it finds a field with the given name.
- Parameters:
-
- Returns:
static Method getMethod |
( |
Class<?> |
clazz, |
|
|
String |
methodName, |
|
|
Object... |
arguments |
|
) |
| [static] |
This method will climb up the class hierarchy until it finds something.
- Parameters:
-
clazz | |
methodName | |
arguments | |
- Returns:
static <T> T invoke |
( |
Object |
target, |
|
|
String |
methodName, |
|
|
Object... |
arguments |
|
) |
| [static] |
static <T> T invokeStatic |
( |
Class<?extends Object > |
clazz, |
|
|
String |
methodName, |
|
|
Object... |
arguments |
|
) |
| [static] |
static boolean isCollection |
( |
Field |
f | ) |
[static] |
static boolean isMap |
( |
Field |
f | ) |
[static] |
static void set |
( |
Object |
target, |
|
|
String |
fieldName, |
|
|
Object |
value |
|
) |
| [static] |
The documentation for this class was generated from the following file: