Interface ModuleDescription.Exports

All Superinterfaces:
ModifierReviewable, ModifierReviewable.OfMandatable
All Known Implementing Classes:
ModuleDescription.Exports.AbstractBase, ModuleDescription.Exports.Simple
Enclosing interface:
ModuleDescription

public static interface ModuleDescription.Exports extends ModifierReviewable.OfMandatable
Represents an exported package declaration in a module. Exports control which packages are accessible to other modules.
  • Method Details

    • getTargets

      Set<String> getTargets()
      Returns the target modules that this package is exported to.
      Returns:
      A set of module names that can access this exported package, or an empty set if exported to all modules.
    • isQualified

      boolean isQualified()
      Determines if this export is qualified (exported to specific modules only).
      Returns:
      true if this export has specific target modules, false if exported to all modules.