Class ClassScanner

java.lang.Object
me.datafox.dfxengine.injector.ClassScanner

public class ClassScanner extends Object
  • Constructor Details

    • ClassScanner

      public ClassScanner(List<String> whitelistedPackages, List<String> blacklistedPackages, List<String> whitelistedClasses, List<String> blacklistedClasses)
      Constructs a new class scanner. All whitelists and blacklists use regular expressions.
      Parameters:
      whitelistedPackages - packages to whitelist
      blacklistedPackages - packages to blacklist
      whitelistedClasses - classes to whitelist
      blacklistedClasses - classes to blacklist
  • Method Details

    • scan

      public ClassHierarchy scan()
      Scans a class hierarchy with default settings.
      Returns:
      scanned class hierarchy
    • scan

      public ClassHierarchy scan(boolean logIgnored)
      Scans a class hierarchy with default settings with optional logging.
      Parameters:
      logIgnored - logs ignored classes if true
      Returns:
      scanned class hierarchy
    • scan

      public ClassHierarchy scan(io.github.classgraph.ScanResult scan, boolean logIgnored)
      Scans a class hierarchy from a ClassGraph ScanResult.
      Parameters:
      logIgnored - logs ignored classes if true
      Returns:
      scanned class hierarchy