Class PackageScanner

java.lang.Object
nl.jqno.equalsverifier.internal.reflection.PackageScanner

public final class PackageScanner extends Object
Scans a 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 if mustExtend is given, and it exists within packageName, 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.