Interface ModuleExportInfo


public sealed interface ModuleExportInfo
Models a single "exports" declaration in the ModuleAttribute.
Since:
24
  • Method Details

    • exportedPackage

      PackageEntry exportedPackage()
      Returns the exported package.
      Returns:
      the exported package
    • exportsFlagsMask

      int exportsFlagsMask()
      Returns the flags associated with this export declaration, as a bit mask. Valid flags include ClassFile.ACC_SYNTHETIC and ClassFile.ACC_MANDATED.
      Returns:
      the flags associated with this export declaration, as a bit mask
    • exportsFlags

      default Set<AccessFlag> exportsFlags()
      Returns the flags associated with this export declaration, as a set of flag values.
      Returns:
      the flags associated with this export declaration, as a set of flag values
    • exportsTo

      List<ModuleEntry> exportsTo()
      Returns the list of modules to which this package is exported, if it is a qualified export.
      Returns:
      the list of modules to which this package is exported, if it is a qualified export
    • has

      default boolean has(AccessFlag flag)
      Returns whether the module has the specified access flag set.
      Parameters:
      flag - the access flag
      Returns:
      whether the module has the specified access flag set
    • of

      static ModuleExportInfo of(PackageEntry exports, int exportFlags, List<ModuleEntry> exportsTo)
      Returns a module export description.
      Parameters:
      exports - the exported package
      exportFlags - the export flags, as a bitmask
      exportsTo - the modules to which this package is exported
      Returns:
      a module export description
    • of

      static ModuleExportInfo of(PackageEntry exports, Collection<AccessFlag> exportFlags, List<ModuleEntry> exportsTo)
      Returns a module export description.
      Parameters:
      exports - the exported package
      exportFlags - the export flags
      exportsTo - the modules to which this package is exported
      Returns:
      a module export description
    • of

      static ModuleExportInfo of(PackageEntry exports, int exportFlags, ModuleEntry... exportsTo)
      Returns a module export description.
      Parameters:
      exports - the exported package
      exportFlags - the export flags, as a bitmask
      exportsTo - the modules to which this package is exported
      Returns:
      a module export description
    • of

      static ModuleExportInfo of(PackageEntry exports, Collection<AccessFlag> exportFlags, ModuleEntry... exportsTo)
      Returns a module export description.
      Parameters:
      exports - the exported package
      exportFlags - the export flags
      exportsTo - the modules to which this package is exported
      Returns:
      a module export description
    • of

      static ModuleExportInfo of(PackageDesc exports, int exportFlags, List<ModuleDesc> exportsTo)
      Returns a module export description.
      Parameters:
      exports - the exported package
      exportFlags - the export flags, as a bitmask
      exportsTo - the modules to which this package is exported
      Returns:
      a module export description
    • of

      static ModuleExportInfo of(PackageDesc exports, Collection<AccessFlag> exportFlags, List<ModuleDesc> exportsTo)
      Returns a module export description.
      Parameters:
      exports - the exported package
      exportFlags - the export flags
      exportsTo - the modules to which this package is exported
      Returns:
      a module export description
    • of

      static ModuleExportInfo of(PackageDesc exports, int exportFlags, ModuleDesc... exportsTo)
      Returns a module export description.
      Parameters:
      exports - the exported package
      exportFlags - the export flags, as a bitmask
      exportsTo - the modules to which this package is exported
      Returns:
      a module export description
    • of

      static ModuleExportInfo of(PackageDesc exports, Collection<AccessFlag> exportFlags, ModuleDesc... exportsTo)
      Returns a module export description.
      Parameters:
      exports - the exported package
      exportFlags - the export flags
      exportsTo - the modules to which this package is exported
      Returns:
      a module export description