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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Flag indicating whether this is a static dependency.
    protected boolean
    Flag indicating whether this is a transitive dependency.
    protected String
    The name of the required module.
    protected boolean
    Flag indicating whether the directive should be removed if it exists.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a blank requires directive.
    RequiresDirective(String moduleName, boolean isStatic, boolean isTransitive)
    Creates a requires directive.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the required module.
    boolean
    Determines whether the directive should be removed when defined.
    boolean
    Determines whether this is a static dependency.
    boolean
    Determines whether this is a transitive dependency.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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.
    • remove

      protected boolean remove
      Flag indicating whether the directive should be removed if it exists.
  • 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
    • isRemove

      public boolean isRemove()

      Determines whether the directive should be removed when defined.

      Returns:
      true to remove the directive false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object