Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
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 © 2000–2016 AO Industries, Inc.. All rights reserved.