Class ModuleDescription.Opens.Simple

    • Field Detail

      • targets

        private final java.util.Set<java.lang.String> targets
        The target modules for this opens declaration.
      • modifiers

        protected final int modifiers
        The modifiers for this opens declaration.
    • Constructor Detail

      • Simple

        public Simple​(java.util.Set<java.lang.String> targets,
                      int modifiers)
        Creates a new simple opens declaration.
        Parameters:
        targets - The target modules for this opens declaration.
        modifiers - The modifiers for this opens declaration.
    • Method Detail

      • getTargets

        public java.util.Set<java.lang.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.
      • getModifiers

        public int getModifiers()
        Returns the modifier that is described by this object.
        Returns:
        The modifier that is described by this object.