Class ModuleInfo.UsesDirective

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

public static class ModuleInfo.UsesDirective extends Object

Represents a uses directive in a module descriptor.

Since:
1.4
Author:
Jeremy Kuhn
  • Field Details

    • typeName

      protected String typeName
      The type which is used in the module.
    • remove

      protected boolean remove
      Flag indicating whether the directive should be removed if it exists.
  • Constructor Details

    • UsesDirective

      public UsesDirective()

      Creates a blank uses directive.

    • UsesDirective

      public UsesDirective(String typeName)

      Creates a uses directive.

      Parameters:
      typeName - the type used in the module
  • Method Details

    • getType

      public String getType()

      Returns the type used in the module.

      Returns:
      the name of the type used in the module
    • 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