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) classA directory classpath element, using thePathAPI.(package private) classA module classpath element.(package private) classA zip/jarfile classpath element.Fields in io.github.classgraph declared as ClasspathElementModifier and TypeFieldDescriptionprivate final ClasspathElementClassfile.classpathElementThe classpath element that contains this classfile.(package private) ClasspathElementClassInfo.classpathElementThe classpath element that this class was found within.private ClasspathElementModuleInfo.classpathElementThe classpath element.private final ClasspathElementResource.classpathElementThe classpath element this resource was obtained from.private final ClasspathElementScanner.ClassfileScanWorkUnit.classpathElementThe classpath element.(package private) final ClasspathElementScanner.ClasspathEntryWorkUnit.parentClasspathElementThe parent classpath element.Fields in io.github.classgraph with type parameters of type ClasspathElementModifier and TypeFieldDescription(package private) Collection<ClasspathElement> ClasspathElement.childClasspathElementsThe 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 duplicateClasspathElementobjects, to reduce the chance that resources are scanned twice, by mapping canonicalized Path objects, URLs, etc.private final List<ClasspathElement> Classfile.classpathOrderThe classpath order.private final List<ClasspathElement> Scanner.ClassfileScannerWorkUnitProcessor.classpathOrderThe classpath order.private List<ClasspathElement> ScanResult.classpathOrderThe 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 ClassInfoClassInfo.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).intClasspathElement.compareTo(ClasspathElement other) Sort in increasing order of classpathElementIdxWithinParent.private static voidScanner.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 voidScanner.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 voidScanner.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 voidScanner.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 voidScanner.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 toClasspathElementDirorClasspathElementZip--is handled separately).private ScanResultScanner.performScan(List<ClasspathElement> finalClasspathEltOrder, List<String> finalClasspathEltOrderStrs, ClasspathFinder classpathFinder) Scan the classpath and/or visible modules.private voidScanner.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.