public class RecursiveScanner extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RecursiveScanner.FileMatchProcessorWrapper
An interface called when the corresponding FilePathTester returns true.
|
static interface |
RecursiveScanner.FilePathTester
An interface used to test whether a file's relative path matches a given specification.
|
Constructor and Description |
---|
RecursiveScanner(ClasspathFinder classpathFinder,
ScanSpec scanSpec,
ArrayList<FastClasspathScanner.ClassMatcher> classMatchers,
Map<String,HashSet<String>> classNameToStaticFinalFieldsToMatch,
Map<String,ArrayList<StaticFinalFieldMatchProcessor>> fullyQualifiedFieldNameToStaticFinalFieldMatchProcessors)
Recursive classpath scanner.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilePathMatcher(RecursiveScanner.FilePathTester filePathTester,
RecursiveScanner.FileMatchProcessorWrapper fileMatchProcessorWrapper) |
long |
classpathContentsLastModifiedTime()
Returns the maximum "last modified" timestamp in the classpath (in epoch millis), or zero if scan() has not
yet been called (or if nothing was found on the classpath).
|
boolean |
classpathContentsModifiedSinceScan()
Returns true if the classpath contents have been changed since scan() was last called.
|
ClassGraphBuilder |
getClassGraphBuilder()
Get the class, interface and annotation graph builder, containing the results of the last full scan, or null
if a scan has not yet been completed.
|
void |
scan()
Scan the classpath, and call any MatchProcessors on files or classes that match.
|
public RecursiveScanner(ClasspathFinder classpathFinder, ScanSpec scanSpec, ArrayList<FastClasspathScanner.ClassMatcher> classMatchers, Map<String,HashSet<String>> classNameToStaticFinalFieldsToMatch, Map<String,ArrayList<StaticFinalFieldMatchProcessor>> fullyQualifiedFieldNameToStaticFinalFieldMatchProcessors)
fullyQualifiedFieldNameToStaticFinalFieldMatchProcessors
- public void addFilePathMatcher(RecursiveScanner.FilePathTester filePathTester, RecursiveScanner.FileMatchProcessorWrapper fileMatchProcessorWrapper)
public void scan()
scanTimestampsOnly
- If true, scans the classpath for matching files, and calls any match processors if a match is
identified. If false, only scans timestamps of files.public ClassGraphBuilder getClassGraphBuilder()
public boolean classpathContentsModifiedSinceScan()
public long classpathContentsLastModifiedTime()
Copyright © 2016. All rights reserved.