Package | Description |
---|---|
io.github.lukehutch.fastclasspathscanner |
Modifier and Type | Method and Description |
---|---|
FastClasspathScanner |
FastClasspathScanner.addClassLoader(ClassLoader classLoader)
Add a ClassLoader to the list of ClassLoaders to scan.
|
FastClasspathScanner |
FastClasspathScanner.disableRecursiveScanning()
Disable recursive scanning.
|
FastClasspathScanner |
FastClasspathScanner.disableRecursiveScanning(boolean disableRecursiveScanning)
If true, disable recursive scanning.
|
FastClasspathScanner |
FastClasspathScanner.enableFieldAnnotationIndexing()
Enables field annotation indexing, which allows you to call
ScanResult#getNamesOfClassesWithFieldAnnotation(annotation).
|
FastClasspathScanner |
FastClasspathScanner.enableFieldAnnotationIndexing(boolean enableFieldAnnotationIndexing)
If enableFieldAnnotationIndexing is true, enables field annotation indexing, which allows you to call
ScanResult#getNamesOfClassesWithFieldAnnotation(annotation).
|
FastClasspathScanner |
FastClasspathScanner.enableFieldInfo()
Enables the saving of field info during the scan.
|
FastClasspathScanner |
FastClasspathScanner.enableFieldInfo(boolean enableFieldInfo)
If enableFieldInfo is true, enables the saving of field info during the scan.
|
FastClasspathScanner |
FastClasspathScanner.enableFieldTypeIndexing()
Enables field type indexing, which allows you to call ScanResult#getClassesWithFieldsOfType(type).
|
FastClasspathScanner |
FastClasspathScanner.enableFieldTypeIndexing(boolean enableFieldTypeIndexing)
If enableFieldTypeIndexing is true, enables field type indexing, which allows you to call
ScanResult#getClassesWithFieldsOfType(type).
|
FastClasspathScanner |
FastClasspathScanner.enableMethodAnnotationIndexing()
Enables method annotation indexing, which allows you to call
ScanResult#getNamesOfClassesWithMethodAnnotation(annotation).
|
FastClasspathScanner |
FastClasspathScanner.enableMethodAnnotationIndexing(boolean enableMethodAnnotationIndexing)
If enableMethodAnnotationIndexing is true, enables method annotation indexing, which allows you to call
ScanResult#getNamesOfClassesWithMethodAnnotation(annotation).
|
FastClasspathScanner |
FastClasspathScanner.enableMethodInfo()
Enables the saving of method info during the scan.
|
FastClasspathScanner |
FastClasspathScanner.enableMethodInfo(boolean enableMethodInfo)
If enableMethodInfo is true, enables the saving of method info during the scan.
|
FastClasspathScanner |
FastClasspathScanner.ignoreFieldVisibility()
This method causes FastClasspathScanner to ignore field visibility, enabling it to see private,
package-private and protected fields.
|
FastClasspathScanner |
FastClasspathScanner.ignoreFieldVisibility(boolean ignoreFieldVisibility)
If ignoreFieldVisibility is true, causes FastClasspathScanner to ignore field visibility, enabling it to see
private, package-private and protected fields.
|
FastClasspathScanner |
FastClasspathScanner.ignoreMethodVisibility()
This method causes FastClasspathScanner to ignore method visibility, enabling it to see private,
package-private and protected methods.
|
FastClasspathScanner |
FastClasspathScanner.ignoreMethodVisibility(boolean ignoreMethodVisibility)
If ignoreMethodVisibility is true, causes FastClasspathScanner to ignore method visibility, enabling it to
see private, package-private and protected methods.
|
FastClasspathScanner |
FastClasspathScanner.ignoreParentClassLoaders()
Ignore parent classloaders (i.e.
|
FastClasspathScanner |
FastClasspathScanner.ignoreParentClassLoaders(boolean ignoreParentClassLoaders)
Ignore parent classloaders (i.e.
|
FastClasspathScanner |
FastClasspathScanner.initializeLoadedClasses(boolean initializeLoadedClasses)
If initializeLoadedClasses is true, classes loaded with Class.forName() are initialized before passing class
references to MatchProcessors.
|
FastClasspathScanner |
FastClasspathScanner.matchAllAnnotationClasses(ClassMatchProcessor annotationClassMatchProcessor)
Calls the provided ClassMatchProcessor for all annotation classes (annotation definitions) found in
whitelisted packages on the classpath.
|
FastClasspathScanner |
FastClasspathScanner.matchAllClasses(ClassMatchProcessor classMatchProcessor)
Calls the provided ClassMatchProcessor for all standard classes, interfaces and annotations found in
whitelisted packages on the classpath.
|
FastClasspathScanner |
FastClasspathScanner.matchAllInterfaceClasses(ClassMatchProcessor interfaceClassMatchProcessor)
Calls the provided ClassMatchProcessor for all interface classes (interface definitions) found in whitelisted
packages on the classpath.
|
FastClasspathScanner |
FastClasspathScanner.matchAllStandardClasses(ClassMatchProcessor standardClassMatchProcessor)
Calls the provided ClassMatchProcessor for all standard classes (i.e.
|
<T> FastClasspathScanner |
FastClasspathScanner.matchClassesImplementing(Class<T> implementedInterface,
ImplementingClassMatchProcessor<T> interfaceMatchProcessor)
Calls the provided InterfaceMatchProcessor for classes on the classpath that implement the specified
interface or a subinterface, or whose superclasses implement the specified interface or a sub-interface.
|
FastClasspathScanner |
FastClasspathScanner.matchClassesWithAnnotation(Class<?> annotation,
ClassAnnotationMatchProcessor classAnnotationMatchProcessor)
Calls the provided ClassAnnotationMatchProcessor if classes are found on the classpath that have the
specified annotation.
|
FastClasspathScanner |
FastClasspathScanner.matchClassesWithFieldAnnotation(Class<? extends Annotation> annotation,
FieldAnnotationMatchProcessor fieldAnnotationMatchProcessor)
Calls the provided FieldAnnotationMatchProcessor if classes are found on the classpath that have one or more
fields with the specified annotation.
|
<T> FastClasspathScanner |
FastClasspathScanner.matchClassesWithFieldOfType(Class<T> fieldType,
ClassMatchProcessor classMatchProcessor)
Calls the provided ClassMatchProcessor for classes on the classpath that have a field of the given type.
|
FastClasspathScanner |
FastClasspathScanner.matchClassesWithMethodAnnotation(Class<? extends Annotation> annotation,
MethodAnnotationMatchProcessor methodAnnotationMatchProcessor)
Calls the provided MethodAnnotationMatchProcessor if classes are found on the classpath that have one or more
methods with the specified annotation.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenameExtension(String extensionToMatch,
FileMatchContentsProcessor fileMatchContentsProcessor)
Calls the given FileMatchProcessor if files are found on the classpath that have the given file extension.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenameExtension(String extensionToMatch,
FileMatchContentsProcessorWithContext fileMatchContentsProcessorWithContext)
Calls the given FileMatchProcessorWithContext if files are found on the classpath that have the given file
extension.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenameExtension(String extensionToMatch,
FileMatchProcessor fileMatchProcessor)
Calls the given FileMatchProcessor if files are found on the classpath that have the given file extension.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenameExtension(String extensionToMatch,
FileMatchProcessorWithContext fileMatchProcessorWithContext)
Calls the given FileMatchProcessorWithContext if files are found on the classpath that have the given file
extension.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePath(String relativePathToMatch,
FileMatchContentsProcessor fileMatchContentsProcessor)
Calls the given FileMatchContentsProcessor if files are found on the classpath that exactly match the given
relative path.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePath(String relativePathToMatch,
FileMatchContentsProcessorWithContext fileMatchContentsProcessorWithContext)
Calls the given FileMatchContentsProcessorWithContext if files are found on the classpath that exactly match
the given relative path.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePath(String relativePathToMatch,
FileMatchProcessor fileMatchProcessor)
Calls the given FileMatchProcessor if files are found on the classpath that exactly match the given relative
path.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePath(String relativePathToMatch,
FileMatchProcessorWithContext fileMatchProcessorWithContext)
Calls the given FileMatchProcessorWithContext if files are found on the classpath that exactly match the
given relative path.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePathLeaf(String pathLeafToMatch,
FileMatchContentsProcessor fileMatchContentsProcessor)
Calls the given FileMatchContentsProcessor if files are found on the classpath that exactly match the given
path leafname.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePathLeaf(String pathLeafToMatch,
FileMatchContentsProcessorWithContext fileMatchContentsProcessorWithContext)
Calls the given FileMatchContentsProcessorWithContext if files are found on the classpath that exactly match
the given path leafname.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePathLeaf(String pathLeafToMatch,
FileMatchProcessor fileMatchProcessor)
Calls the given FileMatchProcessor if files are found on the classpath that exactly match the given path
leafname.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePathLeaf(String pathLeafToMatch,
FileMatchProcessorWithContext fileMatchProcessorWithContext)
Calls the given FileMatchProcessorWithContext if files are found on the classpath that exactly match the
given path leafname.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePattern(String pathRegexp,
FileMatchContentsProcessor fileMatchContentsProcessor)
Calls the given FileMatchContentsProcessor if files are found on the classpath with the given regexp pattern
in their path.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePattern(String pathRegexp,
FileMatchContentsProcessorWithContext fileMatchContentsProcessorWithContext)
Calls the given FileMatchContentsProcessorWithContext if files are found on the classpath with the given
regexp pattern in their path.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePattern(String pathRegexp,
FileMatchProcessor fileMatchProcessor)
Calls the given FileMatchProcessor if files are found on the classpath with the given regexp pattern in their
path.
|
FastClasspathScanner |
FastClasspathScanner.matchFilenamePattern(String pathRegexp,
FileMatchProcessorWithContext fileMatchProcessorWithContext)
Calls the given FileMatchProcessorWithContext if files are found on the classpath with the given regexp
pattern in their path.
|
FastClasspathScanner |
FastClasspathScanner.matchStaticFinalFieldNames(Set<String> fullyQualifiedStaticFinalFieldNames,
StaticFinalFieldMatchProcessor staticFinalFieldMatchProcessor)
Calls the given StaticFinalFieldMatchProcessor if classes are found on the classpath that contain static
final fields that match one of a set of fully-qualified field names, e.g.
|
FastClasspathScanner |
FastClasspathScanner.matchStaticFinalFieldNames(String[] fullyQualifiedStaticFinalFieldNames,
StaticFinalFieldMatchProcessor staticFinalFieldMatchProcessor)
Calls the given StaticFinalFieldMatchProcessor if classes are found on the classpath that contain static
final fields that match one of a list of fully-qualified field names, e.g.
|
FastClasspathScanner |
FastClasspathScanner.matchStaticFinalFieldNames(String fullyQualifiedStaticFinalFieldName,
StaticFinalFieldMatchProcessor staticFinalFieldMatchProcessor)
Calls the given StaticFinalFieldMatchProcessor if classes are found on the classpath that contain static
final fields that match a fully-qualified field name, e.g.
|
<T> FastClasspathScanner |
FastClasspathScanner.matchSubclassesOf(Class<T> superclass,
SubclassMatchProcessor<T> subclassMatchProcessor)
Calls the provided SubclassMatchProcessor if classes are found on the classpath that extend the specified
superclass.
|
<T> FastClasspathScanner |
FastClasspathScanner.matchSubinterfacesOf(Class<T> superinterface,
SubinterfaceMatchProcessor<T> subinterfaceMatchProcessor)
Calls the provided SubinterfaceMatchProcessor if an interface that extends a given superinterface is found on
the classpath.
|
FastClasspathScanner |
FastClasspathScanner.overrideClassLoaders(ClassLoader... overrideClassLoaders)
Completely override (and ignore) system ClassLoaders and the java.class.path system property.
|
FastClasspathScanner |
FastClasspathScanner.overrideClasspath(Iterable<?> overrideClasspathElements)
Override the automatically-detected classpath with a custom path.
|
FastClasspathScanner |
FastClasspathScanner.overrideClasspath(Object... overrideClasspathElements)
Override the automatically-detected classpath with a custom path.
|
FastClasspathScanner |
FastClasspathScanner.overrideClasspath(String overrideClasspath)
Override the automatically-detected classpath with a custom path, with path elements separated by
File.pathSeparatorChar.
|
FastClasspathScanner |
FastClasspathScanner.registerClassLoaderHandler(Class<? extends ClassLoaderHandler> classLoaderHandlerClass)
Register an extra ClassLoaderHandler.
|
FastClasspathScanner |
FastClasspathScanner.removeTemporaryFilesAfterScan(boolean removeTemporaryFilesAfterScan)
If true (the default), nested jarfiles (jarfiles within jarfiles, which have to be extracted during scanning
in order to be read) are removed from their temporary directory after the scan has completed.
|
FastClasspathScanner |
FastClasspathScanner.setAnnotationVisibility(RetentionPolicy annotationVisibility)
Set annotation visibility (to match the annotation retention policy).
|
FastClasspathScanner |
FastClasspathScanner.strictWhitelist()
Switches FastClasspathScanner to strict mode, which disallows searching/matching based on blacklisted
classes, and removes "external" classes from result lists returned by ScanSpec#get...() methods.
|
FastClasspathScanner |
FastClasspathScanner.strictWhitelist(boolean strictWhitelist)
If strictWhitelist is true, switches FastClasspathScanner to strict mode, which disallows searching/matching
based on blacklisted classes, and removes "external" classes from result lists returned by ScanSpec#get...()
methods.
|
FastClasspathScanner |
FastClasspathScanner.verbose()
Switches on verbose mode for debugging purposes.
|
FastClasspathScanner |
FastClasspathScanner.verbose(boolean verbose)
Switches on verbose mode for debugging purposes if verbose == true.
|
Copyright © 2017. All rights reserved.