Class ModulePathInfo
java.lang.Object
io.github.classgraph.ModulePathInfo
Information on the module path. Note that this will only include module system parameters actually listed in
commandline arguments -- in particular this does not include classpath elements from the traditional classpath,
or system modules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe moduleexportsdirectives added on the commandline using the--add-exportsswitch, 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.The modules added to the module path on the commandline using the--add-modulesswitch, as an ordered set of module names, in the order they were listed on the commandline.The moduleopensdirectives added on the commandline using the--add-opensswitch, 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.The modulereadsdirectives added on the commandline using the--add-readsswitch, as an ordered set of strings in the format<source-module>=<target-module>, in the order they were listed on the commandline.The module path commandline switch value delimiters.The module path commandline switches.The fields.private final AtomicBooleanSet to true onceis called.invalid reference
#getRuntimeInfo()The module path provided on the commandline by the--module-pathor-pswitch, as an ordered set of module names, in the order they were listed on the commandline.The module patch directives listed on the commandline using the--patch-moduleswitch, as an ordered set of strings in the format<module>=<file>, in the order they were listed on the commandline. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidgetRuntimeInfo(ReflectionUtils reflectionUtils) Fill in module info from VM commandline parameters.toString()Return the module path info in commandline format.
-
Field Details
-
modulePath
The module path provided on the commandline by the--module-pathor-pswitch, 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()orScanResult.getModules()to get all modules visible at runtime. -
addModules
The modules added to the module path on the commandline using the--add-modulesswitch, as an ordered set of module names, in the order they were listed on the commandline. Note that valid module names includeALL-DEFAULT,ALL-SYSTEM, andALL-MODULE-PATH(see JEP 261 for info). -
patchModules
-
addExports
The moduleexportsdirectives added on the commandline using the--add-exportsswitch, 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 thisModulePathInfoobject was obtained fromScanResult.getModulePathInfo()rather thanClassGraph.getModulePathInfo(), any additionalAdd-Exportsentries found in manifest files during classpath scanning will be appended to this list, in the format<source-module>/<package>=ALL-UNNAMED. -
addOpens
The moduleopensdirectives added on the commandline using the--add-opensswitch, 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 thisModulePathInfoobject was obtained fromScanResult.getModulePathInfo()rather thanClassGraph.getModulePathInfo(), any additionalAdd-Opensentries found in manifest files during classpath scanning will be appended to this list, in the format<source-module>/<package>=ALL-UNNAMED. -
addReads
-
fields
-
argSwitches
-
argPartSeparatorChars
-
gotRuntimeInfo
Set to true onceis called.invalid reference
#getRuntimeInfo()
-
-
Constructor Details
-
ModulePathInfo
public ModulePathInfo()
-
-
Method Details
-
getRuntimeInfo
Fill in module info from VM commandline parameters. -
toString
-