public final class ModuleReflectionUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ModuleReflectionUtils()
Prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<java.lang.Class<?>> |
getCheckstyleModules(java.util.Collection<java.lang.String> packages,
java.lang.ClassLoader loader)
Gets checkstyle's modules (directly, not recursively) in the given packages.
|
static boolean |
isCheckstyleCheck(java.lang.Class<?> clazz)
Checks whether a class may be considered as the checkstyle check.
|
static boolean |
isCheckstyleModule(java.lang.Class<?> clazz)
Checks whether a class may be considered as a checkstyle module.
|
static boolean |
isFileFilterModule(java.lang.Class<?> clazz)
Checks whether a class may be considered as the checkstyle file filter.
|
static boolean |
isFileSetModule(java.lang.Class<?> clazz)
Checks whether a class may be considered as the checkstyle file set.
|
static boolean |
isFilterModule(java.lang.Class<?> clazz)
Checks whether a class may be considered as the checkstyle filter.
|
static boolean |
isRootModule(java.lang.Class<?> clazz)
Checks whether a class may be considered as the checkstyle root module.
|
static boolean |
isValidCheckstyleClass(java.lang.Class<?> clazz)
Checks whether a class extends 'AutomaticBean' and is non-abstract.
|
public static java.util.Set<java.lang.Class<?>> getCheckstyleModules(java.util.Collection<java.lang.String> packages, java.lang.ClassLoader loader) throws java.io.IOException
packages
- the collection of package names to useloader
- the class loader used to load Checkstyle package namesjava.io.IOException
- if the attempt to read class path resources failedisCheckstyleModule(Class)
public static boolean isCheckstyleModule(java.lang.Class<?> clazz)
clazz
- class to check.public static boolean isValidCheckstyleClass(java.lang.Class<?> clazz)
clazz
- class to check.public static boolean isCheckstyleCheck(java.lang.Class<?> clazz)
clazz
- class to check.public static boolean isFileSetModule(java.lang.Class<?> clazz)
clazz
- class to check.public static boolean isFilterModule(java.lang.Class<?> clazz)
clazz
- class to check.public static boolean isFileFilterModule(java.lang.Class<?> clazz)
clazz
- class to check.public static boolean isRootModule(java.lang.Class<?> clazz)
clazz
- class to check.