Interface ModuleDescription.Opens

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

public static interface ModuleDescription.Opens extends ModifierReviewable.OfMandatable
Represents an opened package declaration in a module. Opens allow deep reflective access to packages for other modules.
  • Method Details

    • getTargets

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

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