public class SpringParser extends Object
| 构造器和说明 |
|---|
SpringParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
findAndAddClassesInPackageByFile(String packageName,
String packagePath,
boolean recursive,
Set<Class<?>> classes)
以文件的形式来获取包下的所有Class
|
static Set<Class<?>> |
getClasses(String pack)
从包package中获取所有的Class
|
static void |
main(String[] args)
The main method.
|
ApiDoc |
parse(GenContext context,
String... packageNames)
解析包中的类.
|
public ApiDoc parse(GenContext context, String... packageNames) throws IllegalArgumentException, IllegalAccessException, InstantiationException
context - the contextpackageNames - 包名IllegalArgumentException - the illegal argument exceptionIllegalAccessException - the illegal access exceptionInstantiationException - the instantiation exceptionpublic static void findAndAddClassesInPackageByFile(String packageName, String packagePath, boolean recursive, Set<Class<?>> classes)
packageName - packagePath - recursive - classes - public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException, InstantiationException
args - the argumentsIllegalArgumentException - the illegal argument exceptionIllegalAccessException - the illegal access exceptionInstantiationException - the instantiation exceptionCopyright © 2017. All rights reserved.