Class PackageScanner
java.lang.Object
nl.jqno.equalsverifier.internal.reflection.PackageScanner
Scans a package for classes.
-
Method Summary
Modifier and TypeMethodDescriptiongetClassesIn
(String packageName, Class<?> mustExtend, boolean scanRecursively) Scans the given package for classes.
-
Method Details
-
getClassesIn
public static List<Class<?>> getClassesIn(String packageName, Class<?> mustExtend, boolean scanRecursively) Scans the given package for classes. Note that ifmustExtend
is given, and it exists withinpackageName
, it will NOT be included.- Parameters:
packageName
- The package to scan.mustExtend
- if not null, returns only classes that extend or implement this class.scanRecursively
- true to scan all sub-packages- Returns:
- the classes contained in the given package.
-