Module java.base

Class ModuleDescriptor.Opens

java.lang.Object
java.lang.module.ModuleDescriptor.Opens
All Implemented Interfaces:
Comparable<ModuleDescriptor.Opens>
Enclosing class:
ModuleDescriptor

public static final class ModuleDescriptor.Opens extends Object implements Comparable<ModuleDescriptor.Opens>

A package opened by a module, may be qualified or unqualified.

The opens directive in a module declaration declares a package to be open to allow all types in the package, and all their members, not just public types and their public members to be reflected on by APIs that support private access or a way to bypass or suppress default Java language access control checks.

Since:
9
See Also: