Package io.github.classgraph
Class Scanner.ClassfileScannerWorkUnitProcessor
java.lang.Object
io.github.classgraph.Scanner.ClassfileScannerWorkUnitProcessor
- All Implemented Interfaces:
WorkQueue.WorkUnitProcessor<Scanner.ClassfileScanWorkUnit>
- Enclosing class:
Scanner
private static class Scanner.ClassfileScannerWorkUnitProcessor
extends Object
implements WorkQueue.WorkUnitProcessor<Scanner.ClassfileScanWorkUnit>
WorkUnitProcessor for scanning classfiles.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe names of accepted classes found in the classpath while scanning paths within classpath elements.The names of external (non-accepted) classes scheduled for extended scanning (where scanning is extended upwards to superclasses, interfaces and annotations).private final List
<ClasspathElement> The classpath order.The validClassfile
objects created by scanning classfiles.private final ScanSpec
The scan spec.private final ConcurrentHashMap
<String, String> The string intern map. -
Constructor Summary
ConstructorsConstructorDescriptionClassfileScannerWorkUnitProcessor
(ScanSpec scanSpec, List<ClasspathElement> classpathOrder, Set<String> acceptedClassNamesFound, Queue<Classfile> scannedClassfiles) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
processWorkUnit
(Scanner.ClassfileScanWorkUnit workUnit, WorkQueue<Scanner.ClassfileScanWorkUnit> workQueue, LogNode log) Process work unit.
-
Field Details
-
scanSpec
The scan spec. -
classpathOrder
The classpath order. -
acceptedClassNamesFound
The names of accepted classes found in the classpath while scanning paths within classpath elements. -
classNamesScheduledForExtendedScanning
The names of external (non-accepted) classes scheduled for extended scanning (where scanning is extended upwards to superclasses, interfaces and annotations). -
scannedClassfiles
The validClassfile
objects created by scanning classfiles. -
stringInternMap
The string intern map.
-
-
Constructor Details
-
ClassfileScannerWorkUnitProcessor
public ClassfileScannerWorkUnitProcessor(ScanSpec scanSpec, List<ClasspathElement> classpathOrder, Set<String> acceptedClassNamesFound, Queue<Classfile> scannedClassfiles) Constructor.- Parameters:
scanSpec
- the scan specclasspathOrder
- the classpath orderacceptedClassNamesFound
- the names of accepted classes found in the classpath while scanning paths within classpath elements.scannedClassfiles
- theClassfile
objects created by scanning classfiles
-
-
Method Details
-
processWorkUnit
public void processWorkUnit(Scanner.ClassfileScanWorkUnit workUnit, WorkQueue<Scanner.ClassfileScanWorkUnit> workQueue, LogNode log) throws InterruptedException Process work unit.- Specified by:
processWorkUnit
in interfaceWorkQueue.WorkUnitProcessor<Scanner.ClassfileScanWorkUnit>
- Parameters:
workUnit
- the work unitworkQueue
- the work queuelog
- the log- Throws:
InterruptedException
- the interrupted exception
-