| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static Method | |
| private static Object | |
| public static Object | Returns: result of method invocationobject on which instance, String name of method to be invoked methodName)Returns result of given method invocation on provided object. |
| private static IllegalArgumentException |
| METHOD_HAS_NO_RETURN_VALUE | back to summary |
|---|---|
| private static final String METHOD_HAS_NO_RETURN_VALUE | |
| METHOD_NOT_FOUND | back to summary |
|---|---|
| private static final String METHOD_NOT_FOUND | |
| MethodSupport | back to summary |
|---|---|
| public MethodSupport() | |
| assertHasReturnType | back to summary |
|---|---|
| private static void assertHasReturnType(Class<?> itemClass, Method method) | |
| findMethod | back to summary |
|---|---|
| private static Method findMethod(String methodName, Class<?> itemClass) | |
| invokeMethod | back to summary |
|---|---|
| private static Object invokeMethod(Object item, Method method) | |
| methodResultFor | back to summary |
|---|---|
| public static Object methodResultFor(Object instance, String methodName) Returns result of given method invocation on provided object. Following requirements have to be met to extract method results:
| |
| prepareMethodNotFoundException | back to summary |
|---|---|
| private static IllegalArgumentException prepareMethodNotFoundException(String methodName, Class<?> itemClass, Exception cause) | |