Class ModuleInfo.RequiresDirective

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

public static class ModuleInfo.RequiresDirective extends Object

Represents a requires directive in a module descriptor.

Since:
1.4
Author:
Jeremy Kuhn
  • Field Details

    • moduleName

      protected String moduleName
      The name of the required module.
    • isStatic

      protected boolean isStatic
      Flag indicating whether this is a static dependency.
    • isTransitive

      protected boolean isTransitive
      Flag indicating whether this is a transitive dependency.
  • Constructor Details

    • RequiresDirective

      public RequiresDirective()

      Creates a blank requires directive.

    • RequiresDirective

      public RequiresDirective(String moduleName, boolean isStatic, boolean isTransitive)

      Creates a requires directive.

      Parameters:
      moduleName - the name of the required module
      isStatic - true for a static requires, false otherwise
      isTransitive - true for a transitive requires, false otherwise
  • Method Details

    • getModule

      public String getModule()

      Returns the name of the required module.

      Returns:
      the required module's name
    • isStatic

      public boolean isStatic()

      Determines whether this is a static dependency.

      Returns:
      true if this is a static requires, false otherwise
    • isTransitive

      public boolean isTransitive()

      Determines whether this is a transitive dependency.

      Returns:
      true if this is a transitive requires, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object