Package org.jeecgframework.minidao.util
Class Classes
java.lang.Object
org.jeecgframework.minidao.util.Classes
依赖javassit的工具类,获取方法的参数名
- Author:
- dixingxing
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getMethodParamNames(Class<?> clazz, String method) 获取方法参数名称,匹配同名的某一个方法static String[]getMethodParamNames(Class<?> clazz, String method, Class<?>... paramTypes) 获取方法参数名称,按给定的参数类型匹配方法protected static String[]getMethodParamNames(javassist.CtMethod cm) 获取方法参数名称static void
-
Method Details
-
getMethodParamNames
获取方法参数名称
- Parameters:
cm-- Returns:
- Throws:
Exception
-
getMethodParamNames
获取方法参数名称,按给定的参数类型匹配方法- Parameters:
clazz-method-paramTypes-- Returns:
-
getMethodParamNames
获取方法参数名称,匹配同名的某一个方法- Parameters:
clazz-method-- Returns:
- Throws:
javassist.NotFoundException- 如果类或者方法不存在MissingLVException- 如果最终编译的class文件不包含局部变量表信息
-
main
-