public sealed interface ModuleExportInfo
ModuleAttribute.Module Attribute| Modifier and Type | Method | Description |
|---|---|---|
PackageEntry |
exportedPackage() |
Returns the exported package. |
default Set |
exportsFlags() |
Returns the flags associated with this export declaration, as a set of flag enums. |
int |
exportsFlagsMask() |
Returns the flags associated with this export declaration, as a bit mask. |
List |
exportsTo() |
Returns the list of modules to which this package is exported, or empty if this is an unqualified export. |
default boolean |
has |
Returns whether the export declaration has the specified access flag set. |
static ModuleExportInfo |
of |
Returns a module export description. |
static ModuleExportInfo |
of |
Returns a module export description. |
static ModuleExportInfo |
of |
Returns a module export description. |
static ModuleExportInfo |
of |
Returns a module export description. |
static ModuleExportInfo |
of |
Returns a module export description. |
static ModuleExportInfo |
of |
Returns a module export description. |
static ModuleExportInfo |
of |
Returns a module export description. |
static ModuleExportInfo |
of |
Returns a module export description. |
PackageEntry exportedPackage()
int exportsFlagsMask()
[0, 0xFFFF].default Set<AccessFlag> exportsFlags()
IllegalArgumentException - if the flags mask has any undefined bit setdefault boolean has(AccessFlag flag)
flag - the access flagList<ModuleEntry> exportsTo()
static ModuleExportInfo of(PackageEntry exports, int exportFlags, List<ModuleEntry> exportsTo)
exports - the exported packageexportFlags - the export flags, as a bitmaskexportsTo - the modules to which this package is exported, or empty if this is an unqualified exportstatic ModuleExportInfo of(PackageEntry exports, Collection<AccessFlag> exportFlags, List<ModuleEntry> exportsTo)
exports - the exported packageexportFlags - the export flagsexportsTo - the modules to which this package is exported, or empty if this is an unqualified exportIllegalArgumentException - if any flag cannot be applied to the AccessFlag.Location.MODULE_EXPORTS locationstatic ModuleExportInfo of(PackageEntry exports, int exportFlags, ModuleEntry... exportsTo)
exports - the exported packageexportFlags - the export flags, as a bitmaskexportsTo - the modules to which this package is exported, or empty if this is an unqualified exportstatic ModuleExportInfo of(PackageEntry exports, Collection<AccessFlag> exportFlags, ModuleEntry... exportsTo)
exports - the exported packageexportFlags - the export flagsexportsTo - the modules to which this package is exported, or empty if this is an unqualified exportIllegalArgumentException - if any flag cannot be applied to the AccessFlag.Location.MODULE_EXPORTS locationstatic ModuleExportInfo of(PackageDesc exports, int exportFlags, List<ModuleDesc> exportsTo)
exports - the exported packageexportFlags - the export flags, as a bitmaskexportsTo - the modules to which this package is exported, or empty if this is an unqualified exportstatic ModuleExportInfo of(PackageDesc exports, Collection<AccessFlag> exportFlags, List<ModuleDesc> exportsTo)
exports - the exported packageexportFlags - the export flagsexportsTo - the modules to which this package is exported, or empty if this is an unqualified exportIllegalArgumentException - if any flag cannot be applied to the AccessFlag.Location.MODULE_EXPORTS locationstatic ModuleExportInfo of(PackageDesc exports, int exportFlags, ModuleDesc... exportsTo)
exports - the exported packageexportFlags - the export flags, as a bitmaskexportsTo - the modules to which this package is exported, or empty if this is an unqualified exportstatic ModuleExportInfo of(PackageDesc exports, Collection<AccessFlag> exportFlags, ModuleDesc... exportsTo)
exports - the exported packageexportFlags - the export flagsexportsTo - the modules to which this package is exported, or empty if this is an unqualified exportIllegalArgumentException - if any flag cannot be applied to the AccessFlag.Location.MODULE_EXPORTS location
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/classfile/attribute/ModuleExportInfo.html