public enum ClassScanner extends Enum<ClassScanner>
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassScanner.ProtocolTypes |
| Modifier and Type | Method and Description |
|---|---|
static List<Class> |
scanByAnno(Class<? extends Annotation> anno,
String... scanBasePackages)
Find all classes with given annotation in packages 扫描某个包下带有注解的Class
|
static List<Class> |
scanByName(String nameSimpleReg,
String... scanBasePackages)
Find all classes with given name patten 扫描某个包下所有类名匹配通配符的Class
|
static List<Class> |
scanPackages(String... scanBasePackages)
Find all classes in packages 扫描一或多个包下的所有Class,包含接口类
|
static ClassScanner |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassScanner[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ClassScanner[] values()
for (ClassScanner c : ClassScanner.values()) System.out.println(c);
public static ClassScanner valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static List<Class> scanPackages(String... scanBasePackages)
scanBasePackages - public static List<Class> scanByAnno(Class<? extends Annotation> anno, String... scanBasePackages)
anno - scanBasePackages - Copyright © 2021. All rights reserved.