Class ModuleInfo.ExportsDirective

java.lang.Object
io.inverno.tool.buildtools.ModuleInfo.ExportsDirective
Enclosing class:
ModuleInfo

public static class ModuleInfo.ExportsDirective extends Object

Represents an exports directive in a module descriptor.

Since:
1.4
Author:
Jeremy Kuhn
  • Field Details

    • packageName

      protected String packageName
      The name of the exported package.
    • to

      protected List<String> to
      The names of the modules to which the package is exported.
  • Constructor Details

    • ExportsDirective

      public ExportsDirective()

      Creates a blank exports directive.

    • ExportsDirective

      public ExportsDirective(String name, List<String> to)

      Creates an exports directive.

      Parameters:
      name - the name of the exported package
      to - the list of modules to which the package is exported
  • Method Details

    • getPackage

      public String getPackage()

      Returns the name of the exported package.

      Returns:
      the name of the exported package
    • getTo

      public List<String> getTo()

      Returns the list of modules to which the package is exported.

      Returns:
      the list of modules to which the package is exported
    • toString

      public String toString()
      Overrides:
      toString in class Object