public class ModulePathInfo extends Object
Modifier and Type | Field and Description |
---|---|
Set<String> |
addExports
The module
exports directives added on the commandline using the --add-exports switch, as an
ordered set of strings in the format <source-module>/<package>=<target-module>(,<target-module>)* , in
the order they were listed on the commandline. |
Set<String> |
addModules
The modules added to the module path on the commandline using the
--add-modules switch, as an ordered
set of module names, in the order they were listed on the commandline. |
Set<String> |
addOpens
The module
opens directives added on the commandline using the --add-opens switch, as an
ordered set of strings in the format <source-module>/<package>=<target-module>(,<target-module>)* , in
the order they were listed on the commandline. |
Set<String> |
addReads
The module
reads directives added on the commandline using the --add-reads switch, as an
ordered set of strings in the format <source-module>=<target-module> , in the order they were listed
on the commandline. |
Set<String> |
modulePath
The module path provided on the commandline by the
--module-path or -p switch, as an ordered
set of module names, in the order they were listed on the commandline. |
Set<String> |
patchModules
The module patch directives listed on the commandline using the
--patch-module switch, as an ordered
set of strings in the format <module>=<file> , in the order they were listed on the commandline. |
Constructor and Description |
---|
ModulePathInfo() |
public final Set<String> modulePath
--module-path
or -p
switch, as an ordered
set of module names, in the order they were listed on the commandline.
Note that some modules (such as system modules) will not be in this set, as they are added to the module
system automatically by the runtime. Call ClassGraph.getModules()
or ScanResult.getModules()
to get all modules visible at runtime.
public final Set<String> addModules
--add-modules
switch, as an ordered
set of module names, in the order they were listed on the commandline. Note that valid module names include
ALL-DEFAULT
, ALL-SYSTEM
, and ALL-MODULE-PATH
(see
JEP 261 for info).public final Set<String> patchModules
--patch-module
switch, as an ordered
set of strings in the format <module>=<file>
, in the order they were listed on the commandline.public final Set<String> addExports
exports
directives added on the commandline using the --add-exports
switch, as an
ordered set of strings in the format <source-module>/<package>=<target-module>(,<target-module>)*
, in
the order they were listed on the commandline. Additionally, if this ModulePathInfo
object was
obtained from ScanResult.getModulePathInfo()
rather than ClassGraph.getModulePathInfo()
, any
additional Add-Exports
entries found in manifest files during classpath scanning will be appended to
this list, in the format <source-module>/<package>=ALL-UNNAMED
.public final Set<String> addOpens
opens
directives added on the commandline using the --add-opens
switch, as an
ordered set of strings in the format <source-module>/<package>=<target-module>(,<target-module>)*
, in
the order they were listed on the commandline. Additionally, if this ModulePathInfo
object was
obtained from ScanResult.getModulePathInfo()
rather than ClassGraph.getModulePathInfo()
, any
additional Add-Opens
entries found in manifest files during classpath scanning will be appended to
this list, in the format <source-module>/<package>=ALL-UNNAMED
.Copyright © 2022. All rights reserved.