Uses of Class
io.github.classgraph.ClasspathElement
-
Packages that use ClasspathElement Package Description io.github.classgraph -
-
Uses of ClasspathElement in io.github.classgraph
Subclasses of ClasspathElement in io.github.classgraph Modifier and Type Class Description (package private) class
ClasspathElementDir
A directory classpath element, using thePath
API.(package private) class
ClasspathElementModule
A module classpath element.(package private) class
ClasspathElementZip
A zip/jarfile classpath element.Fields in io.github.classgraph declared as ClasspathElement Modifier and Type Field Description private ClasspathElement
Classfile. classpathElement
The classpath element that contains this classfile.(package private) ClasspathElement
ClassInfo. classpathElement
The classpath element that this class was found within.private ClasspathElement
ModuleInfo. classpathElement
The classpath element.private ClasspathElement
Resource. classpathElement
The classpath element this resource was obtained from.private ClasspathElement
Scanner.ClassfileScanWorkUnit. classpathElement
The classpath element.(package private) ClasspathElement
Scanner.ClasspathEntryWorkUnit. parentClasspathElement
The parent classpath element.Fields in io.github.classgraph with type parameters of type ClasspathElement Modifier and Type Field Description (package private) java.util.Collection<ClasspathElement>
ClasspathElement. childClasspathElements
The child classpath elements, keyed by the order of the child classpath element within the Class-Path entry of the manifest file the child classpath element was listed in (or the position of the file within the sorted entries of a lib directory).private SingletonMap<java.lang.Object,ClasspathElement,java.io.IOException>
Scanner. classpathEntryObjToClasspathEntrySingletonMap
A singleton map used to eliminate creation of duplicateClasspathElement
objects, to reduce the chance that resources are scanned twice, by mapping canonicalized Path objects, URLs, etc.private java.util.List<ClasspathElement>
Classfile. classpathOrder
The classpath order.private java.util.List<ClasspathElement>
Scanner.ClassfileScannerWorkUnitProcessor. classpathOrder
The classpath order.private java.util.List<ClasspathElement>
ScanResult. classpathOrder
The order of classpath elements, after inner jars have been extracted to temporary files, etc.Methods in io.github.classgraph that return types with arguments of type ClasspathElement Modifier and Type Method Description private java.util.List<ClasspathElement>
Scanner. findClasspathOrder(java.util.Set<ClasspathElement> toplevelClasspathElts)
Recursively perform a depth-first traversal of child classpath elements, breaking cycles if necessary, to determine the final classpath element order.Methods in io.github.classgraph with parameters of type ClasspathElement Modifier and Type Method Description (package private) static ClassInfo
ClassInfo. addScannedClass(java.lang.String className, int classModifiers, boolean isExternalClass, java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo, ClasspathElement classpathElement, Resource classfileResource)
Add a class that has just been scanned (as opposed to just referenced by a scanned class).int
ClasspathElement. compareTo(ClasspathElement other)
Sort in increasing order of classpathElementIdxWithinParent.private static void
Scanner. findClasspathOrderRec(ClasspathElement currClasspathElement, java.util.Set<ClasspathElement> visitedClasspathElts, java.util.List<ClasspathElement> order)
Recursively perform a depth-first search of jar interdependencies, breaking cycles if necessary, to determine the final classpath element order.Method parameters in io.github.classgraph with type arguments of type ClasspathElement Modifier and Type Method Description private java.util.List<ClasspathElement>
Scanner. findClasspathOrder(java.util.Set<ClasspathElement> toplevelClasspathElts)
Recursively perform a depth-first traversal of child classpath elements, breaking cycles if necessary, to determine the final classpath element order.private static void
Scanner. findClasspathOrderRec(ClasspathElement currClasspathElement, java.util.Set<ClasspathElement> visitedClasspathElts, java.util.List<ClasspathElement> order)
Recursively perform a depth-first search of jar interdependencies, breaking cycles if necessary, to determine the final classpath element order.private static void
Scanner. findClasspathOrderRec(ClasspathElement currClasspathElement, java.util.Set<ClasspathElement> visitedClasspathElts, java.util.List<ClasspathElement> order)
Recursively perform a depth-first search of jar interdependencies, breaking cycles if necessary, to determine the final classpath element order.private void
Scanner. findNestedClasspathElements(java.util.List<java.util.AbstractMap.SimpleEntry<java.lang.String,ClasspathElement>> classpathElts, LogNode log)
Find classpath elements whose path is a prefix of another classpath element, and record the nesting.private void
Scanner. maskClassfiles(java.util.List<ClasspathElement> classpathElementOrder, LogNode maskLog)
Perform classpath masking of classfiles.private WorkQueue.WorkUnitProcessor<Scanner.ClasspathEntryWorkUnit>
Scanner. newClasspathEntryWorkUnitProcessor(java.util.Set<ClasspathElement> allClasspathEltsOut, java.util.Set<ClasspathElement> toplevelClasspathEltsOut)
Create a WorkUnitProcessor for opening traditional classpath entries (which are mapped toClasspathElementDir
orClasspathElementZip
--is handled separately
).private ScanResult
Scanner. performScan(java.util.List<ClasspathElement> finalClasspathEltOrder, java.util.List<java.lang.String> finalClasspathEltOrderStrs, ClasspathFinder classpathFinder)
Scan the classpath and/or visible modules.private void
Scanner. preprocessClasspathElementsByType(java.util.List<ClasspathElement> finalTraditionalClasspathEltOrder, LogNode classpathFinderLog)
Find classpath elements whose path is a prefix of another classpath element, and record the nesting.Constructors in io.github.classgraph with parameters of type ClasspathElement 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.ClassfileScanWorkUnit(ClasspathElement classpathElement, Resource classfileResource, boolean isExternalClass)
Constructor.ClasspathEntryWorkUnit(java.lang.Object classpathEntryObj, java.lang.ClassLoader classLoader, ClasspathElement parentClasspathElement, int classpathElementIdxWithinParent, java.lang.String packageRootPrefix)
Constructor.ModuleInfo(ModuleRef moduleRef, ClasspathElement classpathElement)
Construct a ModuleInfo object.Resource(ClasspathElement classpathElement, long length)
Constructor.Constructor parameters in io.github.classgraph with type arguments of type ClasspathElement 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.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.
-