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