Uses of Class
nonapi.io.github.classgraph.scanspec.ScanSpec
-
-
Uses of ScanSpec in io.github.classgraph
Fields in io.github.classgraph declared as ScanSpec Modifier and Type Field Description private ScanSpec
Classfile. scanSpec
The scan spec.(package private) ScanSpec
ClassGraph. scanSpec
The scanning specification.(package private) ScanSpec
ClasspathElement. scanSpec
The scan spec.private ScanSpec
Scanner.ClassfileScannerWorkUnitProcessor. scanSpec
The scan spec.private ScanSpec
Scanner. scanSpec
The scan spec.(package private) ScanSpec
ScanResult. scanSpec
The scan spec.ScanSpec
ScanResult.SerializationFormat. scanSpec
The scan spec.Methods in io.github.classgraph with parameters of type ScanSpec Modifier and Type Method Description private static java.util.Set<ClassInfo>
ClassInfo. filterClassInfo(java.util.Collection<ClassInfo> classes, ScanSpec scanSpec, boolean strictAccept, ClassInfo.ClassType... classTypes)
Filter classes according to scan spec and class type.(package private) static java.lang.String
GraphvizDotfileGenerator. generateGraphVizDotFile(ClassInfoList classInfoList, float sizeX, float sizeY, boolean showFields, boolean showFieldTypeDependencyEdges, boolean showMethods, boolean showMethodTypeDependencyEdges, boolean showAnnotations, boolean useSimpleNames, ScanSpec scanSpec)
Generates a .dot file which can be fed into GraphViz for layout and visualization of the class graph.(package private) static ClassInfoList
ClassInfo. getAllAnnotationClasses(java.util.Collection<ClassInfo> classes, ScanSpec scanSpec)
Get all annotation classes found during the scan.(package private) static ClassInfoList
ClassInfo. getAllClasses(java.util.Collection<ClassInfo> classes, ScanSpec scanSpec)
Get all classes found during the scan.(package private) static ClassInfoList
ClassInfo. getAllEnums(java.util.Collection<ClassInfo> classes, ScanSpec scanSpec)
Get allEnum
classes found during the scan.(package private) static ClassInfoList
ClassInfo. getAllImplementedInterfaceClasses(java.util.Collection<ClassInfo> classes, ScanSpec scanSpec)
Get all implemented interface (non-annotation interface) classes found during the scan.(package private) static ClassInfoList
ClassInfo. getAllInterfacesOrAnnotationClasses(java.util.Collection<ClassInfo> classes, ScanSpec scanSpec)
Get all interface or annotation classes found during the scan.(package private) static ClassInfoList
ClassInfo. getAllRecords(java.util.Collection<ClassInfo> classes, ScanSpec scanSpec)
Get allrecord
classes found during the scan.(package private) static ClassInfoList
ClassInfo. getAllStandardClasses(java.util.Collection<ClassInfo> classes, ScanSpec scanSpec)
Get all standard classes found during the scan.(package private) static PackageInfo
PackageInfo. getOrCreatePackage(java.lang.String packageName, java.util.Map<java.lang.String,PackageInfo> packageNameToPackageInfo, ScanSpec scanSpec)
Get thePackageInfo
object for the named package, creating it if it doesn't exist, and also creatingPackageInfo
objects for any needed parent packages for which aPackageInfo
has not yet been created.private static void
GraphvizDotfileGenerator. labelClassNodeHTML(ClassInfo ci, java.lang.String shape, java.lang.String boxBgColor, boolean showFields, boolean showMethods, boolean useSimpleNames, ScanSpec scanSpec, java.lang.StringBuilder buf)
Produce HTML label for class node.Constructors in io.github.classgraph with parameters of type ScanSpec Constructor Description Classfile(ClasspathElement classpathElement, java.util.List<ClasspathElement> classpathOrder, java.util.Set<java.lang.String> acceptedClassNamesFound, java.util.Set<java.lang.String> classNamesScheduledForExtendedScanning, java.lang.String relativePath, Resource classfileResource, boolean isExternalClass, java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> stringInternMap, WorkQueue<Scanner.ClassfileScanWorkUnit> workQueue, ScanSpec scanSpec, LogNode log)
Directly examine contents of classfile binary header to determine annotations, implemented interfaces, the super-class etc.ClassfileScannerWorkUnitProcessor(ScanSpec scanSpec, java.util.List<ClasspathElement> classpathOrder, java.util.Set<java.lang.String> acceptedClassNamesFound, java.util.Queue<Classfile> scannedClassfiles)
Constructor.ClasspathElement(Scanner.ClasspathEntryWorkUnit workUnit, ScanSpec scanSpec)
A classpath element.ClasspathElementDir(Scanner.ClasspathEntryWorkUnit workUnit, NestedJarHandler nestedJarHandler, ScanSpec scanSpec)
A directory classpath element.ClasspathElementModule(ModuleRef moduleRef, SingletonMap<ModuleRef,Recycler<ModuleReaderProxy,java.io.IOException>,java.io.IOException> moduleRefToModuleReaderProxyRecyclerMap, Scanner.ClasspathEntryWorkUnit workUnit, ScanSpec scanSpec)
A zip/jarfile classpath element.ClasspathElementZip(Scanner.ClasspathEntryWorkUnit workUnit, NestedJarHandler nestedJarHandler, ScanSpec scanSpec)
A jarfile classpath element.Scanner(boolean performScan, ScanSpec scanSpec, java.util.concurrent.ExecutorService executorService, int numParallelTasks, ClassGraph.ScanResultProcessor scanResultProcessor, ClassGraph.FailureHandler failureHandler, ReflectionUtils reflectionUtils, LogNode topLevelLog)
The classpath scanner.ScanResult(ScanSpec scanSpec, java.util.List<ClasspathElement> classpathOrder, java.util.List<java.lang.String> rawClasspathEltOrderStrs, ClasspathFinder classpathFinder, java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo, java.util.Map<java.lang.String,PackageInfo> packageNameToPackageInfo, java.util.Map<java.lang.String,ModuleInfo> moduleNameToModuleInfo, java.util.Map<java.io.File,java.lang.Long> fileToLastModified, NestedJarHandler nestedJarHandler, LogNode topLevelLog)
The result of a scan.SerializationFormat(java.lang.String serializationFormatStr, ScanSpec scanSpec, java.util.List<ClassInfo> classInfo, java.util.List<PackageInfo> packageInfo, java.util.List<ModuleInfo> moduleInfo, java.util.List<java.lang.String> classpath)
Constructor. -
Uses of ScanSpec in nonapi.io.github.classgraph.classloaderhandler
Methods in nonapi.io.github.classgraph.classloaderhandler with parameters of type ScanSpec Modifier and Type Method Description private static void
FelixClassLoaderHandler. addBundle(java.lang.Object bundleWiring, java.lang.ClassLoader classLoader, ClasspathOrder classpathOrderOut, java.util.Set<java.lang.Object> bundles, ScanSpec scanSpec, LogNode log)
Adds the bundle.private static void
EquinoxClassLoaderHandler. addBundleFile(java.lang.Object bundlefile, java.util.Set<java.lang.Object> path, java.lang.ClassLoader classLoader, ClasspathOrder classpathOrderOut, ScanSpec scanSpec, LogNode log)
Add the bundle file.private static void
EquinoxClassLoaderHandler. addClasspathEntries(java.lang.Object owner, java.lang.ClassLoader classLoader, ClasspathOrder classpathOrderOut, ScanSpec scanSpec, LogNode log)
Adds the classpath entries.static void
AntClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
ClassGraphClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.void
ClassLoaderHandlerRegistry.ClassLoaderHandlerRegistryEntry. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Call the static method findClasspathOrder(ClassLoader, ClasspathOrder) for the associatedClassLoaderHandler
.static void
CxfContainerClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
EquinoxClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
EquinoxContextFinderClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
FallbackClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
FelixClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
JBossClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
JPMSClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
OSGiDefaultClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
ParentLastDelegationOrderTestClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
PlexusClassWorldsClassRealmClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
QuarkusClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
SpringBootRestartClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
TomcatWebappClassLoaderBaseHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
UnoOneJarClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
URLClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
WeblogicClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
WebsphereLibertyClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.static void
WebsphereTraditionalClassLoaderHandler. findClasspathOrder(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
Find the classpath entries for the associatedClassLoader
.private static void
QuarkusClassLoaderHandler. findClasspathOrderForQuarkusClassloader(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
private static void
QuarkusClassLoaderHandler. findClasspathOrderForRunnerClassloader(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
private static void
QuarkusClassLoaderHandler. findClasspathOrderForRuntimeClassloader(java.lang.ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log)
private static void
JBossClassLoaderHandler. handleRealModule(java.lang.Object module, java.util.Set<java.lang.Object> visitedModules, java.lang.ClassLoader classLoader, ClasspathOrder classpathOrderOut, ScanSpec scanSpec, LogNode log)
Handle a module.private static void
JBossClassLoaderHandler. handleResourceLoader(java.lang.Object resourceLoader, java.lang.ClassLoader classLoader, ClasspathOrder classpathOrderOut, ScanSpec scanSpec, LogNode log)
Handle a resource loader. -
Uses of ScanSpec in nonapi.io.github.classgraph.classpath
Fields in nonapi.io.github.classgraph.classpath declared as ScanSpec Modifier and Type Field Description private ScanSpec
ClasspathOrder. scanSpec
The scan spec.Methods in nonapi.io.github.classgraph.classpath with parameters of type ScanSpec Modifier and Type Method Description boolean
ClasspathOrder. addClasspathEntries(java.util.List<java.lang.Object> overrideClasspath, java.lang.ClassLoader classLoader, ScanSpec scanSpec, LogNode log)
Add classpath entries, separated by the system path separator character.boolean
ClasspathOrder. addClasspathEntry(java.lang.Object pathElement, java.lang.ClassLoader classLoader, ScanSpec scanSpec, LogNode log)
Add a classpath element relative to a base file.private boolean
ClasspathOrder. addClasspathEntry(java.lang.Object pathElement, java.lang.String pathElementStr, java.lang.ClassLoader classLoader, ScanSpec scanSpec)
Add a classpath entry.boolean
ClasspathOrder. addClasspathEntryObject(java.lang.Object pathObject, java.lang.ClassLoader classLoader, ScanSpec scanSpec, LogNode log)
Add classpath entries from an object obtained from reflection.boolean
ClasspathOrder. addClasspathPathStr(java.lang.String pathStr, java.lang.ClassLoader classLoader, ScanSpec scanSpec, LogNode log)
Add classpath entries, separated by the system path separator character.private java.util.List<ModuleRef>
ModuleFinder. findModuleRefs(java.util.LinkedHashSet<java.lang.Object> layers, ScanSpec scanSpec, LogNode log)
Get all visible ModuleReferences in a list of layers.private java.util.List<ModuleRef>
ModuleFinder. findModuleRefsFromCallstack(java.lang.Class<?>[] callStack, ScanSpec scanSpec, boolean scanNonSystemModules, LogNode log)
Get all visible ModuleReferences in all layers, given an array of stack frameClass<?>
references.Constructors in nonapi.io.github.classgraph.classpath with parameters of type ScanSpec Constructor Description ClassLoaderFinder(ScanSpec scanSpec, ReflectionUtils reflectionUtils, LogNode log)
A class to find the unique ordered classpath elements.ClasspathFinder(ScanSpec scanSpec, ReflectionUtils reflectionUtils, LogNode log)
A class to find the unique ordered classpath elements.ClasspathOrder(ScanSpec scanSpec, ReflectionUtils reflectionUtils)
Constructor.ModuleFinder(java.lang.Class<?>[] callStack, ScanSpec scanSpec, boolean scanNonSystemModules, boolean scanSystemModules, ReflectionUtils reflectionUtils, LogNode log)
A class to find the visible modules. -
Uses of ScanSpec in nonapi.io.github.classgraph.fastzipfilereader
Fields in nonapi.io.github.classgraph.fastzipfilereader declared as ScanSpec Modifier and Type Field Description ScanSpec
NestedJarHandler. scanSpec
TheScanSpec
.Constructors in nonapi.io.github.classgraph.fastzipfilereader with parameters of type ScanSpec Constructor Description NestedJarHandler(ScanSpec scanSpec, InterruptionChecker interruptionChecker, ReflectionUtils reflectionUtils)
A handler for nested jars. -
Uses of ScanSpec in nonapi.io.github.classgraph.utils
Methods in nonapi.io.github.classgraph.utils with parameters of type ScanSpec Modifier and Type Method Description static java.lang.String[]
JarUtils. smartPathSplit(java.lang.String pathStr, char separatorChar, ScanSpec scanSpec)
Split a path on the given separator char.static java.lang.String[]
JarUtils. smartPathSplit(java.lang.String pathStr, ScanSpec scanSpec)
Split a path on File.pathSeparator (':' on Linux, ';' on Windows), but also allow for the use of URLs with protocol specifiers, e.g.
-