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) classClasspathElementDirA directory classpath element, using thePathAPI.(package private) classClasspathElementModuleA module classpath element.(package private) classClasspathElementZipA zip/jarfile classpath element.Fields in io.github.classgraph declared as ClasspathElement Modifier and Type Field Description private 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 ClasspathElementResource. classpathElementThe classpath element this resource was obtained from.private ClasspathElementScanner.ClassfileScanWorkUnit. classpathElementThe classpath element.(package private) ClasspathElementScanner.ClasspathEntryWorkUnit. parentClasspathElementThe 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. 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 SingletonMap<java.lang.Object,ClasspathElement,java.io.IOException>Scanner. classpathEntryObjToClasspathEntrySingletonMapA 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 java.util.List<ClasspathElement>Classfile. classpathOrderThe classpath order.private java.util.List<ClasspathElement>Scanner.ClassfileScannerWorkUnitProcessor. classpathOrderThe classpath order.private java.util.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 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 ClassInfoClassInfo. 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).intClasspathElement. compareTo(ClasspathElement other)Sort in increasing order of classpathElementIdxWithinParent.private static voidScanner. 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 voidScanner. 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 voidScanner. 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 voidScanner. 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 voidScanner. 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 toClasspathElementDirorClasspathElementZip--is handled separately).private ScanResultScanner. performScan(java.util.List<ClasspathElement> finalClasspathEltOrder, java.util.List<java.lang.String> finalClasspathEltOrderStrs, ClasspathFinder classpathFinder)Scan the classpath and/or visible modules.private voidScanner. 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.
-