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
MultiModuleGroupQuery. 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
MultiModuleGroupQuerymay be present, but will return
nullon 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
SourceGroupscontained 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.
Built on April 20 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.