Modifier and Type | Method and Description |
---|---|
ClassGraph |
ClassGraph.acceptClasses(String... classNames)
Scan one or more specific classes, without scanning other classes in the same package unless the package is
itself accepted.
|
ClassGraph |
ClassGraph.acceptClasspathElementsContainingResourcePath(String... resourcePaths)
Accept classpath elements based on resource paths.
|
ClassGraph |
ClassGraph.acceptJars(String... jarLeafNames)
Accept one or more jars.
|
ClassGraph |
ClassGraph.acceptLibOrExtJars(String... jarLeafNames)
Accept one or more jars in a JRE/JDK "lib/" or "ext/" directory (these directories are not scanned unless
enableSystemJarsAndModules() is called, by association with the JRE/JDK). |
ClassGraph |
ClassGraph.acceptModules(String... moduleNames)
Accept one or more modules for scanning.
|
ClassGraph |
ClassGraph.acceptPackages(String... packageNames)
Scan one or more specific packages and their sub-packages.
|
ClassGraph |
ClassGraph.acceptPackagesNonRecursive(String... packageNames)
Scan one or more specific packages, without recursively scanning sub-packages unless they are themselves
accepted.
|
ClassGraph |
ClassGraph.acceptPaths(String... paths)
Scan one or more specific paths, and their sub-directories or nested paths.
|
ClassGraph |
ClassGraph.acceptPathsNonRecursive(String... paths)
Scan one or more specific paths, without recursively scanning sub-directories or nested paths unless they are
themselves accepted.
|
ClassGraph |
ClassGraph.addClassLoader(ClassLoader classLoader)
Add a ClassLoader to the list of ClassLoaders to scan.
|
ClassGraph |
ClassGraph.addModuleLayer(Object moduleLayer)
Add a ModuleLayer to the list of ModuleLayers to scan.
|
ClassGraph |
ClassGraph.blacklistClasses(String... classNames)
Deprecated.
Use
rejectClasses(String...) instead. |
ClassGraph |
ClassGraph.blacklistClasspathElementsContainingResourcePath(String... resourcePaths)
Deprecated.
|
ClassGraph |
ClassGraph.blacklistJars(String... jarLeafNames)
Deprecated.
Use
rejectJars(String...) instead. |
ClassGraph |
ClassGraph.blacklistLibOrExtJars(String... jarLeafNames)
Deprecated.
Use
rejectLibOrExtJars(String...) instead. |
ClassGraph |
ClassGraph.blacklistModules(String... moduleNames)
Deprecated.
Use
rejectModules(String...) instead. |
ClassGraph |
ClassGraph.blacklistPackages(String... packageNames)
Deprecated.
Use
rejectPackages(String...) instead. |
ClassGraph |
ClassGraph.blacklistPaths(String... paths)
Deprecated.
Use
rejectPaths(String...) instead. |
ClassGraph |
ClassGraph.disableDirScanning()
Disables the scanning of directories.
|
ClassGraph |
ClassGraph.disableJarScanning()
Disables the scanning of jarfiles.
|
ClassGraph |
ClassGraph.disableModuleScanning()
Disables the scanning of modules.
|
ClassGraph |
ClassGraph.disableNestedJarScanning()
Disables the scanning of nested jarfiles (jarfiles within jarfiles).
|
ClassGraph |
ClassGraph.disableRuntimeInvisibleAnnotations()
Causes only runtime visible annotations to be scanned (causes runtime invisible annotations to be ignored).
|
ClassGraph |
ClassGraph.enableAllInfo()
Enables the scanning of all classes, fields, methods, annotations, and static final field constant
initializer values, and ignores all visibility modifiers, so that both public and non-public classes, fields
and methods are all scanned.
|
ClassGraph |
ClassGraph.enableAnnotationInfo()
Enables the saving of annotation info (for class, field, method and method parameter annotations) during the
scan.
|
ClassGraph |
ClassGraph.enableClassInfo()
Enables the scanning of classfiles, producing
ClassInfo objects in the ScanResult . |
ClassGraph |
ClassGraph.enableExternalClasses()
Causes ClassGraph to return classes that are not in the accepted packages, but that are directly referred to
by classes within accepted packages as a superclass, implemented interface or annotation.
|
ClassGraph |
ClassGraph.enableFieldInfo()
Enables the saving of field info during the scan.
|
ClassGraph |
ClassGraph.enableInterClassDependencies()
Enables the determination of inter-class dependencies, which may be read by calling
ClassInfo.getClassDependencies() , ScanResult.getClassDependencyMap() or
ScanResult.getReverseClassDependencyMap() . |
ClassGraph |
ClassGraph.enableMemoryMapping()
If true, use a
MappedByteBuffer rather than the FileChannel API to open files, which may be
faster for large classpaths consisting of many large jarfiles, but uses up virtual memory space. |
ClassGraph |
ClassGraph.enableMethodInfo()
Enables the saving of method info during the scan.
|
ClassGraph |
ClassGraph.enableRealtimeLogging()
Enables logging by calling
verbose() , and then sets the logger to "realtime logging mode", where log
entries are written out immediately to stderr, rather than only after the scan has completed. |
ClassGraph |
ClassGraph.enableRemoteJarScanning()
Enable classpath elements to be fetched from remote ("http:"/"https:") URLs (or URLs with custom schemes).
|
ClassGraph |
ClassGraph.enableStaticFinalFieldConstantInitializerValues()
Enables the saving of static final field constant initializer values.
|
ClassGraph |
ClassGraph.enableSystemJarsAndModules()
Enables the scanning of system packages (
"java.*" , "javax.*" , "javafx.*" ,
"jdk.*" , "oracle.*" , "sun.*" ) -- these are not scanned by default for speed. |
ClassGraph |
ClassGraph.enableURLScheme(String scheme)
Enable classpath elements to be fetched from
URL connections with the specified URL scheme (also
works for any custom URL schemes that have been defined, as long as they have more than two characters, in
order to not conflict with Windows drive letters). |
ClassGraph |
ClassGraph.filterClasspathElements(ClassGraph.ClasspathElementFilter classpathElementFilter)
Add a classpath element filter.
|
ClassGraph |
ClassGraph.filterClasspathElementsByURL(ClassGraph.ClasspathElementURLFilter classpathElementURLFilter)
Add a classpath element filter.
|
ClassGraph |
ClassGraph.ignoreClassVisibility()
Causes class visibility to be ignored, enabling private, package-private and protected classes to be scanned.
|
ClassGraph |
ClassGraph.ignoreFieldVisibility()
Causes field visibility to be ignored, enabling private, package-private and protected fields to be scanned.
|
ClassGraph |
ClassGraph.ignoreMethodVisibility()
Causes method visibility to be ignored, enabling private, package-private and protected methods to be
scanned.
|
ClassGraph |
ClassGraph.ignoreParentClassLoaders()
Ignore parent classloaders (i.e.
|
ClassGraph |
ClassGraph.ignoreParentModuleLayers()
Ignore parent module layers (i.e.
|
ClassGraph |
ClassGraph.initializeLoadedClasses()
Causes classes loaded using
ClassInfo.loadClass() to be are initialized after class loading (the
default is to not initialize classes). |
ClassGraph |
ClassGraph.overrideClassLoaders(ClassLoader... overrideClassLoaders)
Completely override (and ignore) system ClassLoaders and the java.class.path system property.
|
ClassGraph |
ClassGraph.overrideClasspath(Iterable<?> overrideClasspathElements)
Override the automatically-detected classpath with a custom path.
|
ClassGraph |
ClassGraph.overrideClasspath(Object... overrideClasspathElements)
Override the automatically-detected classpath with a custom path.
|
ClassGraph |
ClassGraph.overrideClasspath(String overrideClasspath)
Override the automatically-detected classpath with a custom path, with path elements separated by
File.pathSeparatorChar.
|
ClassGraph |
ClassGraph.overrideModuleLayers(Object... overrideModuleLayers)
Completely override (and ignore) the visible ModuleLayers, and instead scan the requested ModuleLayers.
|
ClassGraph |
ClassGraph.rejectClasses(String... classNames)
Specifically reject one or more specific classes, preventing them from being scanned even if they are in a
accepted package.
|
ClassGraph |
ClassGraph.rejectClasspathElementsContainingResourcePath(String... resourcePaths)
Reject classpath elements based on resource paths.
|
ClassGraph |
ClassGraph.rejectJars(String... jarLeafNames)
Reject one or more jars, preventing them from being scanned.
|
ClassGraph |
ClassGraph.rejectLibOrExtJars(String... jarLeafNames)
Reject one or more jars in a JRE/JDK "lib/" or "ext/" directory, preventing them from being scanned.
|
ClassGraph |
ClassGraph.rejectModules(String... moduleNames)
Reject one or more modules, preventing them from being scanned.
|
ClassGraph |
ClassGraph.rejectPackages(String... packageNames)
Prevent the scanning of one or more specific packages and their sub-packages.
|
ClassGraph |
ClassGraph.rejectPaths(String... paths)
Prevent the scanning of one or more specific paths and their sub-directories / nested paths.
|
ClassGraph |
ClassGraph.removeTemporaryFilesAfterScan()
Remove temporary files, including nested jarfiles (jarfiles within jarfiles, which have to be extracted
during scanning in order to be read) from their temporary directory as soon as the scan has completed.
|
ClassGraph |
ClassGraph.setMaxBufferedJarRAMSize(int maxBufferedJarRAMSize)
The maximum size of an inner (nested) jar that has been deflated (i.e.
|
ClassGraph |
ClassGraph.verbose()
Switches on verbose logging to System.err.
|
ClassGraph |
ClassGraph.verbose(boolean verbose)
Switches on verbose logging to System.err if verbose is true.
|
ClassGraph |
ClassGraph.whitelistClasses(String... classNames)
Deprecated.
Use
acceptClasses(String...) instead. |
ClassGraph |
ClassGraph.whitelistClasspathElementsContainingResourcePath(String... resourcePaths)
Deprecated.
|
ClassGraph |
ClassGraph.whitelistJars(String... jarLeafNames)
Deprecated.
Use
acceptJars(String...) instead. |
ClassGraph |
ClassGraph.whitelistLibOrExtJars(String... jarLeafNames)
Deprecated.
Use
acceptLibOrExtJars(String...) instead. |
ClassGraph |
ClassGraph.whitelistModules(String... moduleNames)
Deprecated.
Use
acceptModules(String...) instead. |
ClassGraph |
ClassGraph.whitelistPackages(String... packageNames)
Deprecated.
Use
acceptPackages(String...) instead. |
ClassGraph |
ClassGraph.whitelistPackagesNonRecursive(String... packageNames)
Deprecated.
Use
acceptPackagesNonRecursive(String...) instead. |
ClassGraph |
ClassGraph.whitelistPaths(String... paths)
Deprecated.
Use
acceptPaths(String...) instead. |
ClassGraph |
ClassGraph.whitelistPathsNonRecursive(String... paths)
Deprecated.
Use
acceptPathsNonRecursive(String...) instead. |
Copyright © 2021. All rights reserved.