Uses of Class
io.github.classgraph.ClasspathElement
Packages that use ClasspathElement
-
Uses of ClasspathElement in io.github.classgraph
Subclasses of ClasspathElement in io.github.classgraphModifier and TypeClassDescription(package private) class
A directory classpath element, using thePath
API.(package private) class
A module classpath element.(package private) class
A zip/jarfile classpath element.Fields in io.github.classgraph declared as ClasspathElementModifier and TypeFieldDescriptionprivate final 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 final ClasspathElement
Resource.classpathElement
The classpath element this resource was obtained from.private final ClasspathElement
Scanner.ClassfileScanWorkUnit.classpathElement
The classpath element.(package private) final ClasspathElement
Scanner.ClasspathEntryWorkUnit.parentClasspathElement
The parent classpath element.Fields in io.github.classgraph with type parameters of type ClasspathElementModifier and TypeFieldDescription(package private) 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 final SingletonMap
<Object, ClasspathElement, IOException> 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 final List
<ClasspathElement> Classfile.classpathOrder
The classpath order.private final List
<ClasspathElement> Scanner.ClassfileScannerWorkUnitProcessor.classpathOrder
The classpath order.private 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 ClasspathElementModifier and TypeMethodDescriptionprivate List
<ClasspathElement> Scanner.findClasspathOrder
(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 ClasspathElementModifier and TypeMethodDescription(package private) static ClassInfo
ClassInfo.addScannedClass
(String className, int classModifiers, boolean isExternalClass, Map<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, Set<ClasspathElement> visitedClasspathElts, 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 ClasspathElementModifier and TypeMethodDescriptionprivate List
<ClasspathElement> Scanner.findClasspathOrder
(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, Set<ClasspathElement> visitedClasspathElts, 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, Set<ClasspathElement> visitedClasspathElts, 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
(List<AbstractMap.SimpleEntry<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
(List<ClasspathElement> classpathElementOrder, LogNode maskLog) Perform classpath masking of classfiles.Scanner.newClasspathEntryWorkUnitProcessor
(Set<ClasspathElement> allClasspathEltsOut, Set<ClasspathElement> toplevelClasspathEltsOut) Create a WorkUnitProcessor for opening traditional classpath entries (which are mapped toClasspathElementDir
orClasspathElementZip
--is handled separately
).private ScanResult
Scanner.performScan
(List<ClasspathElement> finalClasspathEltOrder, List<String> finalClasspathEltOrderStrs, ClasspathFinder classpathFinder) Scan the classpath and/or visible modules.private void
Scanner.preprocessClasspathElementsByType
(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 ClasspathElementModifierConstructorDescription(package private)
Classfile
(ClasspathElement classpathElement, List<ClasspathElement> classpathOrder, Set<String> acceptedClassNamesFound, Set<String> classNamesScheduledForExtendedScanning, String relativePath, Resource classfileResource, boolean isExternalClass, ConcurrentHashMap<String, 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.(package private)
ClassfileScanWorkUnit
(ClasspathElement classpathElement, Resource classfileResource, boolean isExternalClass) Constructor.ClasspathEntryWorkUnit
(Object classpathEntryObj, ClassLoader classLoader, ClasspathElement parentClasspathElement, int classpathElementIdxWithinParent, String packageRootPrefix) Constructor.(package private)
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 ClasspathElementModifierConstructorDescription(package private)
Classfile
(ClasspathElement classpathElement, List<ClasspathElement> classpathOrder, Set<String> acceptedClassNamesFound, Set<String> classNamesScheduledForExtendedScanning, String relativePath, Resource classfileResource, boolean isExternalClass, ConcurrentHashMap<String, 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, List<ClasspathElement> classpathOrder, Set<String> acceptedClassNamesFound, Queue<Classfile> scannedClassfiles) Constructor.(package private)
ScanResult
(ScanSpec scanSpec, List<ClasspathElement> classpathOrder, List<String> rawClasspathEltOrderStrs, ClasspathFinder classpathFinder, Map<String, ClassInfo> classNameToClassInfo, Map<String, PackageInfo> packageNameToPackageInfo, Map<String, ModuleInfo> moduleNameToModuleInfo, Map<File, Long> fileToLastModified, NestedJarHandler nestedJarHandler, LogNode topLevelLog) The result of a scan.