public class ReflectUtil extends Object
| 构造器和说明 |
|---|
ReflectUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<String> |
getInterfacceParamterName(Class clazz,
String methodName) |
static List<String> |
getInterfaceMethodParamNames(Method method)
获取接口方法的参数名(抽象方法也可以)
编译时增加参数 -parameters
|
static List<String> |
getParameterNameJava8(Class clazz,
String methodName) |
static List<String> |
getParamterName(Class clazz,
String methodName) |
static List<String> |
getParamterNameJavassist(Class clazz,
String methodName) |
static Object |
getValueByKey(Object obj,
String key)
单个对象的某个键的值
|
public static List<String> getParameterNameJava8(Class clazz, String methodName)
public static List<String> getInterfaceMethodParamNames(Method method) throws IOException
method - 方法名IOException - io异常public static List<String> getInterfacceParamterName(Class clazz, String methodName)
public static List<String> getParamterNameJavassist(Class clazz, String methodName) throws javassist.NotFoundException
javassist.NotFoundExceptionCopyright © 2022. All rights reserved.