Interface IMultiModuleEntry
- All Superinterfaces:
IModulePathEntry
- All Known Implementing Classes:
ClasspathJep247, ClasspathJep247Jdk12, ClasspathJrt, ClasspathJrt, ClasspathJrtWithReleaseOption, ModulePathEntry.Multi
Represents a module path entry that represents a collection of modules
like a jimage or an exploded module directory structure
-
Method Summary
Modifier and TypeMethodDescriptiongetModule(char[] name) Get the module named name that this entry contributes to the module pathgetModuleNames(Collection<String> limitModules) Get the names of all modules served by this entry.Methods inherited from interface IModulePathEntry
getModule, getModulesDeclaringPackage, hasCompilationUnit, isAutomaticModule, listPackages, servesModuleModifier and TypeMethodDescriptiondefault IModuleGet the module that this entry contributes.char[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) Answer the relevant modules that declare the given package.booleanhasCompilationUnit(String qualifiedPackageName, String moduleName) Answer whether the given package has any compilation unit (.java or .class) in the given module.default booleanSpecifies whether this entry represents an automatic module.default char[][]Lists all packages in this modulepath entry.default booleanservesModule(char[] name) Indicates whether this entry knows the module named name and can answer queries regarding the module
-
Method Details
-
getModule
Get the module named name that this entry contributes to the module path- Specified by:
getModulein interfaceIModulePathEntry- Parameters:
name- - The name of the module to look up- Returns:
- The module named name or null
-
getModuleNames
Get the names of all modules served by this entry.- Parameters:
limitModules- if non-null, only modules with names in this set and their transitive closure will be reported.
-