| Modifier and Type | Field and Description |
|---|---|
| private boolean | forceScanJavaClassPath
If true, must forcibly scan |
| private List | nonSystemModuleRefs
The non system module refs. |
| private final ReflectionUtils | |
| private List | systemModuleRefs
The system module refs. |
| Access | Constructor and Description |
|---|---|
| public | ModuleFinder(final Class<?>[]
the callstack. callStack, final ScanSpec The scan spec. scanSpec, final boolean whether to scan unnamed and non-system modules scanNonSystemModules, final boolean whether to scan system modules scanSystemModules, final ReflectionUtils reflectionUtils, final LogNode The log. log)A class to find the visible modules. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private List | Returns: the listthe layers layers, final ScanSpec the scan spec scanSpec, final LogNode the log log)Get all visible ModuleReferences in a list of layers. |
| private List | Returns: the listthe call stack callStack, final ScanSpec the scan spec scanSpec, final boolean whether to include unnamed and non-system modules scanNonSystemModules, final LogNode the log log)Get all visible ModuleReferences in all layers, given an array of stack frame |
| public boolean | Returns: If true, must forcibly scanjava.class.path, since there was an anonymous module layer.Force scan java class path. |
| public List | Returns: The non-system modules asModuleRef wrappers, or null if no modules were found (e.g. on JDK 7
or 8).Get the non-system modules as |
| public List | Returns: The system modules asModuleRef wrappers, or null if no modules were found (e.g. on JDK 7 or
8).Get the system modules as |
| forceScanJavaClassPath | back to summary |
|---|---|
| private boolean forceScanJavaClassPath If true, must forcibly scan | |
| nonSystemModuleRefs | back to summary |
|---|---|
| private List<ModuleRef> nonSystemModuleRefs The non system module refs. | |
| reflectionUtils | back to summary |
|---|---|
| private final ReflectionUtils reflectionUtils | |
| systemModuleRefs | back to summary |
|---|---|
| private List<ModuleRef> systemModuleRefs The system module refs. | |
| ModuleFinder | back to summary |
|---|---|
| public ModuleFinder(final Class<?>[] callStack, final ScanSpec scanSpec, final boolean scanNonSystemModules, final boolean scanSystemModules, final ReflectionUtils reflectionUtils, final LogNode log) A class to find the visible modules. | |
| findLayerOrder | back to summary |
|---|---|
| private void findLayerOrder(final Object layer, final Set<Object> layerVisited, final Set<Object> parentLayers, final Deque<Object> layerOrderOut) Recursively find the topological sort order of ancestral layers. (The JDK (as of 10.0.0.1) uses a broken (non-topological) DFS ordering for layer resolution in ModuleLayer#layers() and Configuration#configurations() but when I reported this bug on the Jigsaw mailing list, Alan didn't see what the problem was.) | |
| findModuleRefs | back to summary |
|---|---|
| private List Get all visible ModuleReferences in a list of layers. | |
| findModuleRefsFromCallstack | back to summary |
|---|---|
| private List Get all visible ModuleReferences in all layers, given an array of stack frame | |
| forceScanJavaClassPath | back to summary |
|---|---|
| public boolean forceScanJavaClassPath() Force scan java class path.
| |
| getNonSystemModuleRefs | back to summary |
|---|---|
| public List Get the non-system modules as | |
| getSystemModuleRefs | back to summary |
|---|---|
| public List Get the system modules as | |