ModuleAttribute.
API Note
Opening a package to another module allows that other module to gain
the same full privilege access as members in this module. See MethodHandles#privateLookupIn for more details.
Module Attribute
ModuleAttribute#exports(), ModuleDescriptor.Opens
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | Returns: whether the open declaration has the specified access flag setthe access flag flag)Returns whether the open declaration has the specified access flag set. |
| public static ModuleOpenInfo | Returns: a module open descriptionthe package to open opens, int the open flags opensFlags, List<ModuleEntry> the modules to which this package is opened, or empty if
this is an unqualified open opensTo)Returns a module open description. |
| public static ModuleOpenInfo | Returns: a module open descriptionthe package to open opens, Collection<AccessFlag> the open flags opensFlags, List<ModuleEntry> the modules to which this package is opened, or empty if
this is an unqualified open opensTo)Returns a module open description. |
| public static ModuleOpenInfo | Returns: a module open descriptionthe package to open opens, int the open flags opensFlags, ModuleEntry... the modules to which this package is opened, or empty if
this is an unqualified open opensTo)Returns a module open description. |
| public static ModuleOpenInfo | Returns: a module open descriptionthe package to open opens, Collection<AccessFlag> the open flags opensFlags, ModuleEntry... the modules to which this package is opened, or empty if
this is an unqualified open opensTo)Returns a module open description. |
| public static ModuleOpenInfo | Returns: a module open descriptionthe package to open opens, int the open flags opensFlags, List<ModuleDesc> the modules to which this package is opened, if it is a
qualified open, or empty opensTo)Returns a module open description. |
| public static ModuleOpenInfo | Returns: a module open descriptionthe package to open opens, Collection<AccessFlag> the open flags opensFlags, List<ModuleDesc> the modules to which this package is opened, if it is a
qualified open, or empty opensTo)Returns a module open description. |
| public static ModuleOpenInfo | Returns: a module open descriptionthe package to open opens, int the open flags opensFlags, ModuleDesc... the packages to which this package is opened, or empty if
this is an unqualified open opensTo)Returns a module open description. |
| public static ModuleOpenInfo | Returns: a module open descriptionthe package to open opens, Collection<AccessFlag> the open flags opensFlags, ModuleDesc... the packages to which this package is opened, or empty if
this is an unqualified open opensTo)Returns a module open description. |
| public PackageEntry | |
| public default Set | Returns: the flags associated with this open declaration, as a set of flag enumsReturns the flags associated with this open declaration, as a set of flag enums. |
| public int | Returns: the flags associated with this open declaration, as a bit maskReturns the flags associated with this open declaration, as a bit mask. |
| public List | Returns: the modules to which this package is opened, or empty if this is an unqualified openReturns the modules to which this package is opened, or empty if this is an unqualified open. |
| has | back to summary |
|---|---|
| public default boolean has(AccessFlag flag) Returns whether the open declaration has the specified access flag set.
| |
| of | back to summary |
|---|---|
| public static ModuleOpenInfo of(PackageEntry opens, int opensFlags, List<ModuleEntry> opensTo) Returns a module open description.
| |
| of | back to summary |
|---|---|
| public static ModuleOpenInfo of(PackageEntry opens, Collection<AccessFlag> opensFlags, List<ModuleEntry> opensTo) Returns a module open description.
| |
| of | back to summary |
|---|---|
| public static ModuleOpenInfo of(PackageEntry opens, int opensFlags, ModuleEntry... opensTo) Returns a module open description.
| |
| of | back to summary |
|---|---|
| public static ModuleOpenInfo of(PackageEntry opens, Collection<AccessFlag> opensFlags, ModuleEntry... opensTo) Returns a module open description.
| |
| of | back to summary |
|---|---|
| public static ModuleOpenInfo of(PackageDesc opens, int opensFlags, List<ModuleDesc> opensTo) Returns a module open description.
| |
| of | back to summary |
|---|---|
| public static ModuleOpenInfo of(PackageDesc opens, Collection<AccessFlag> opensFlags, List<ModuleDesc> opensTo) Returns a module open description.
| |
| of | back to summary |
|---|---|
| public static ModuleOpenInfo of(PackageDesc opens, int opensFlags, ModuleDesc... opensTo) Returns a module open description.
| |
| of | back to summary |
|---|---|
| public static ModuleOpenInfo of(PackageDesc opens, Collection<AccessFlag> opensFlags, ModuleDesc... opensTo) Returns a module open description.
| |
| openedPackage | back to summary |
|---|---|
| public PackageEntry openedPackage() Returns the package being opened.
| |
| opensFlags | back to summary |
|---|---|
| public default Set Returns the flags associated with this open declaration, as a set of flag enums.
| |
| opensFlagsMask | back to summary |
|---|---|
| public int opensFlagsMask() Returns the flags associated with this open declaration, as a bit mask.
It is a
| |
| opensTo | back to summary |
|---|---|
| public List Returns the modules to which this package is opened, or empty if this is an unqualified open.
| |