Class ModuleInfo.OpensDirective

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

public static class ModuleInfo.OpensDirective extends Object

Represents an opens directive in a module descriptor.

Since:
1.4
Author:
Jeremy Kuhn
  • Field Details

    • packageName

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

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

    • OpensDirective

      public OpensDirective()

      Creates an empty opens directive.

    • OpensDirective

      public OpensDirective(String packageName, List<String> to)

      Creates an opens directive.

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

    • getPackage

      public String getPackage()

      Returns the name of the opened package.

      Returns:
      the name of the opened package
    • getTo

      public List<String> getTo()

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

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

      public String toString()
      Overrides:
      toString in class Object