public final class Methods extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
invoke(Class<T> returnType,
Object target,
String methodName)
Invokes the provided method on the given object.
|
static <T> T |
invoke(Class<T> returnType,
Object target,
String methodName,
Class<?>[] parameterTypes,
Object[] parameterValues)
Invokes the provided method on the given object.
|
static <T> T |
invoke(Class<T> returnType,
Object target,
String methodName,
Class<?> parameterType,
Object parameterValue)
Invokes the provided method on the given object.
|
public static <T> T invoke(Class<T> returnType, Object target, String methodName) throws ReflectionException
ReflectionExceptionpublic static <T> T invoke(Class<T> returnType, Object target, String methodName, Class<?> parameterType, Object parameterValue) throws ReflectionException
ReflectionExceptionpublic static <T> T invoke(Class<T> returnType, Object target, String methodName, Class<?>[] parameterTypes, Object[] parameterValues) throws ReflectionException
ReflectionExceptionCopyright © 2016. All rights reserved.