Class ModuleDescription.Exports.Simple

    • Field Detail

      • targets

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

        protected final int modifiers
        The modifiers for this export.
    • Constructor Detail

      • Simple

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

      • getTargets

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

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