public class MethodUtil extends Object
| 构造器和说明 |
|---|
MethodUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Method |
getMethodByName(Class<?> targetClazz,
String methodName) |
static Method |
getMethodByNameAndTypes(Class<?> targetClazz,
String methodName,
String[] argsType) |
static List<Method> |
getMethodsStartWithNamePattern(Class<?> targetClazz,
String methodNamePattern) |
public static Method getMethodByName(Class<?> targetClazz, String methodName) throws NoSuchMethodException
public static Method getMethodByNameAndTypes(Class<?> targetClazz, String methodName, String[] argsType) throws NoSuchMethodException
public static List<Method> getMethodsStartWithNamePattern(Class<?> targetClazz, String methodNamePattern) throws NoSuchMethodException
Copyright © 2016. All rights reserved.