public class MethodParamNamesScaner extends Object
构造器和说明 |
---|
MethodParamNamesScaner() |
限定符和类型 | 方法和说明 |
---|---|
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
IOException
public static Map<String,List<String>> getParamNames(InputStream ins) throws IOException
IOException
Copyright © 2017. All rights reserved.