public class ClassFinder extends Object
| 构造器和说明 |
|---|
ClassFinder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Class<?>> |
getClassList()
获取基础包名中的所有类
|
static List<Class<?>> |
getClassListByAnnotation(Class<? extends Annotation> annotationClass)
获取基础包名中指定注解的相关类
|
static List<Class<?>> |
getClassListBySuper(Class<?> superClass)
获取基础包名中指定父类或接口的相关类
|
public static List<Class<?>> getClassListBySuper(Class<?> superClass)
superClass - the super classpublic static List<Class<?>> getClassListByAnnotation(Class<? extends Annotation> annotationClass)
annotationClass - the annotation classCopyright © 2016. All rights reserved.