public class ReflectionUtils extends Object
Constructor and Description |
---|
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static Method |
getMethod(Class<?> clz,
String methodName,
int argSize) |
static <T> T |
invokeStaticMethod(Class clz,
String methodName,
Object... args) |
static <T> T |
invokeStaticMethod(Method method,
Object... args) |
public static <T> T invokeStaticMethod(Class clz, String methodName, Object... args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
public static <T> T invokeStaticMethod(Method method, Object... args) throws InvocationTargetException, IllegalAccessException
public static Method getMethod(Class<?> clz, String methodName, int argSize) throws NoSuchMethodException
NoSuchMethodException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.