Package me.datafox.dfxengine.injector
Class ClassScanner
java.lang.Object
me.datafox.dfxengine.injector.ClassScanner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscan()
Scans a class hierarchy with default settings.scan
(boolean logIgnored) Scans a class hierarchy with default settings with optional logging.scan
(io.github.classgraph.ScanResult scan, boolean logIgnored) Scans a class hierarchy from aClassGraph
ScanResult
.
-
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 whitelistblacklistedPackages
- packages to blacklistwhitelistedClasses
- classes to whitelistblacklistedClasses
- classes to blacklist
-
-
Method Details
-
scan
Scans a class hierarchy with default settings.- Returns:
- scanned class hierarchy
-
scan
Scans a class hierarchy with default settings with optional logging.- Parameters:
logIgnored
- logs ignored classes iftrue
- Returns:
- scanned class hierarchy
-
scan
Scans a class hierarchy from aClassGraph
ScanResult
.- Parameters:
logIgnored
- logs ignored classes iftrue
- Returns:
- scanned class hierarchy
-