public interface MultiModuleGroupQuery
"classes"). The default
SourceGrouppresentation (display name) includes module information, so the user can identify individual package root folders. In some cases, different presentation, or more precise information on relationship between a SourceGroup and module is needed. Such information can be obtained using
The object can be obtained from project Lookup. If it is not present, the project does not support java modules.
If the source level of the project is 8 or less, the
MultiModuleGroupQuery may be present,
but will return
null on all queries, as modules are not supported before JDK9.
|Modifier and Type||Interface and Description|
Describes properties of a
|Modifier and Type||Method and Description|
Obtains module-related information for the passed
@CheckForNull MultiModuleGroupQuery.Result findModuleInfo(@NonNull SourceGroup grp)
SourceGroupis not known, is not owned by any module, or language level for the project does not support modules.
grp- not null, the
@NonNull SourceGroup filterModuleGroups(@NonNull String modName, @NonNull SourceGroup groups)
SourceGroups are owned by a particular module. Returns
SourceGroups contained within the module, empty array if module does not exist or does not contain any of the passed
modName- module name
groups- groups, to filter.