public sealed interface ModuleOpenInfo
ModuleOpenInfoは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
ModuleAttributePREVIEWの単一の"opens"宣言をモデル化します。- 導入されたバージョン:
 - 22
 
- 
メソッドのサマリー
修飾子と型メソッド説明default booleanhas(AccessFlag flag) 指定されたアクセス・フラグが設定されているかどうかを返します。static ModuleOpenInfoPREVIEWof(PackageEntryPREVIEW opens, int opensFlags, ModuleEntryPREVIEW... opensTo) モジュール・オープン摘要を返します。static ModuleOpenInfoPREVIEWof(PackageEntryPREVIEW opens, int opensFlags, List<ModuleEntryPREVIEW> opensTo) モジュール・オープン摘要を返します。static ModuleOpenInfoPREVIEWof(PackageEntryPREVIEW opens, Collection<AccessFlag> opensFlags, ModuleEntryPREVIEW... opensTo) モジュール・オープン摘要を返します。static ModuleOpenInfoPREVIEWof(PackageEntryPREVIEW opens, Collection<AccessFlag> opensFlags, List<ModuleEntryPREVIEW> opensTo) モジュール・オープン摘要を返します。static ModuleOpenInfoPREVIEWof(PackageDesc opens, int opensFlags, ModuleDesc... opensTo) モジュール・オープン摘要を返します。static ModuleOpenInfoPREVIEWof(PackageDesc opens, int opensFlags, List<ModuleDesc> opensTo) モジュール・オープン摘要を返します。static ModuleOpenInfoPREVIEWof(PackageDesc opens, Collection<AccessFlag> opensFlags, ModuleDesc... opensTo) モジュール・オープン摘要を返します。static ModuleOpenInfoPREVIEWof(PackageDesc opens, Collection<AccessFlag> opensFlags, List<ModuleDesc> opensTo) モジュール・オープン摘要を返します。開いているパッケージを返します。default Set<AccessFlag> アクセス・フラグを返します。intこのオープン宣言に関連付けられているフラグをビット・マスクとして返します。opensTo()このパッケージが開かれているモジュールのリスト(修飾された開かれている場合)。 
- 
メソッドの詳細
- 
openedPackage
 - 
opensFlagsMask
int opensFlagsMask()このオープン宣言に関連付けられているフラグをビット・マスクとして返します。 有効なフラグは、ClassFile.ACC_SYNTHETICPREVIEWおよびClassFile.ACC_MANDATEDPREVIEWです- 戻り値:
 - このオープン宣言に関連付けられたフラグをビット・マスクとして
 
 - 
opensFlags
 - 
has
default boolean has(AccessFlag flag) 指定されたアクセス・フラグが設定されているかどうかを返します。- パラメータ:
 flag- アクセス・フラグ- 戻り値:
 - 指定されたアクセス・フラグが設定されているかどうか
 
 - 
opensTo
 - 
of
static ModuleOpenInfoPREVIEW of(PackageEntryPREVIEW opens, int opensFlags, List<ModuleEntryPREVIEW> opensTo) モジュール・オープン摘要を返します。- パラメータ:
 opens- 開くパッケージopensFlags- 開いた旗opensTo- このパッケージがオープンされているパッケージ(適格なオープンである場合)- 戻り値:
 - モジュール・オープン摘要
 
 - 
of
static ModuleOpenInfoPREVIEW of(PackageEntryPREVIEW opens, Collection<AccessFlag> opensFlags, List<ModuleEntryPREVIEW> opensTo) モジュール・オープン摘要を返します。- パラメータ:
 opens- 開くパッケージopensFlags- 開いた旗opensTo- このパッケージがオープンされているパッケージ(適格なオープンである場合)- 戻り値:
 - モジュール・オープン摘要
 
 - 
of
static ModuleOpenInfoPREVIEW of(PackageEntryPREVIEW opens, int opensFlags, ModuleEntryPREVIEW... opensTo) モジュール・オープン摘要を返します。- パラメータ:
 opens- 開くパッケージopensFlags- 開いた旗opensTo- このパッケージがオープンされているパッケージ(適格なオープンである場合)- 戻り値:
 - モジュール・オープン摘要
 
 - 
of
static ModuleOpenInfoPREVIEW of(PackageEntryPREVIEW opens, Collection<AccessFlag> opensFlags, ModuleEntryPREVIEW... opensTo) モジュール・オープン摘要を返します。- パラメータ:
 opens- 開くパッケージopensFlags- 開いた旗opensTo- このパッケージがオープンされているパッケージ(適格なオープンである場合)- 戻り値:
 - モジュール・オープン摘要
 
 - 
of
static ModuleOpenInfoPREVIEW of(PackageDesc opens, int opensFlags, List<ModuleDesc> opensTo) モジュール・オープン摘要を返します。- パラメータ:
 opens- 開くパッケージopensFlags- 開いた旗opensTo- このパッケージがオープンされているパッケージ(適格なオープンである場合)- 戻り値:
 - モジュール・オープン摘要
 
 - 
of
static ModuleOpenInfoPREVIEW of(PackageDesc opens, Collection<AccessFlag> opensFlags, List<ModuleDesc> opensTo) モジュール・オープン摘要を返します。- パラメータ:
 opens- 開くパッケージopensFlags- 開いた旗opensTo- このパッケージがオープンされているパッケージ(適格なオープンである場合)- 戻り値:
 - モジュール・オープン摘要
 
 - 
of
static ModuleOpenInfoPREVIEW of(PackageDesc opens, int opensFlags, ModuleDesc... opensTo) モジュール・オープン摘要を返します。- パラメータ:
 opens- 開くパッケージopensFlags- 開いた旗opensTo- このパッケージがオープンされているパッケージ(適格なオープンである場合)- 戻り値:
 - モジュール・オープン摘要
 
 - 
of
static ModuleOpenInfoPREVIEW of(PackageDesc opens, Collection<AccessFlag> opensFlags, ModuleDesc... opensTo) モジュール・オープン摘要を返します。- パラメータ:
 opens- 開くパッケージopensFlags- 開いた旗opensTo- このパッケージがオープンされているパッケージ(適格なオープンである場合)- 戻り値:
 - モジュール・オープン摘要
 
 
 - 
 
ModuleOpenInfoを使用できます。