public class MethodParamNamesScaner extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,Map<String,List<String>>> |
caches |
| Constructor and Description |
|---|
MethodParamNamesScaner() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,List<String>> |
getParamNames(Class<?> klass) |
static List<String> |
getParamNames(Constructor<?> constructor)
获取Constructor的形参名称列表
|
static Map<String,List<String>> |
getParamNames(InputStream ins) |
static List<String> |
getParamNames(Method method)
获取Method的形参名称列表
|
public static List<String> getParamNames(Method method)
method - 需要解析的方法public static List<String> getParamNames(Constructor<?> constructor)
constructor - 需要解析的构造函数public static Map<String,List<String>> getParamNames(Class<?> klass) throws IOException
IOExceptionpublic static Map<String,List<String>> getParamNames(InputStream ins) throws IOException
IOExceptionCopyright © 2017. All rights reserved.