Class ModuleDescription.Exports.Simple

All Implemented Interfaces:
ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable, ModuleDescription.Exports
Enclosing interface:
ModuleDescription.Exports

public static class ModuleDescription.Exports.Simple extends ModuleDescription.Exports.AbstractBase
A simple implementation of ModuleDescription.Exports that stores the target modules and modifiers.
  • Field Details

    • targets

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

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

    • Simple

      public Simple(Set<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 Details

    • getTargets

      public 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.
    • getModifiers

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