public class PackageUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
classNames(String packageName,
List<Class<?>> classNames,
boolean isInterface,
Class<? extends Annotation>... filterAnnotations)
获取指定包下所有的类
|
static void |
forClassNames(String packageName,
List<Class<?>> classNames,
boolean isInterface,
Class<? extends Annotation>... filterAnnotations)
forClassNames
|
static void |
jarClassNames(String jarPath,
String packageName,
List<Class<?>> classNames,
boolean isInterface,
Class<? extends Annotation>... filterAnnotations)
jarClassNames
|
static void |
main(String[] args) |
public static void classNames(String packageName, List<Class<?>> classNames, boolean isInterface, Class<? extends Annotation>... filterAnnotations)
packageName - packageNameclassNames - classNamesisInterface - isInterfacefilterAnnotations - filterAnnotationspublic static void forClassNames(String packageName, List<Class<?>> classNames, boolean isInterface, Class<? extends Annotation>... filterAnnotations)
packageName - packageNameclassNames - classNamesisInterface - isInterfacefilterAnnotations - filterAnnotationspublic static void jarClassNames(String jarPath, String packageName, List<Class<?>> classNames, boolean isInterface, Class<? extends Annotation>... filterAnnotations)
jarPath - jarPathpackageName - packageNameclassNames - classNamesisInterface - isInterfacefilterAnnotations - filterAnnotationspublic static void main(String[] args)
Copyright © 2023 AnswerAIL. All rights reserved.