Module io.inverno.tool.buildtools
Package io.inverno.tool.buildtools
Class ModuleInfo.RequiresDirective
java.lang.Object
io.inverno.tool.buildtools.ModuleInfo.RequiresDirective
- Enclosing class:
ModuleInfo
Represents a requires directive in a module descriptor.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Field Summary
Modifier and TypeFieldDescriptionprotected 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. -
Constructor Summary
ConstructorDescriptionCreates a blank requires directive.RequiresDirective
(String moduleName, boolean isStatic, boolean isTransitive) Creates a requires directive. -
Method Summary
-
Field Details
-
moduleName
The name of the required module. -
isStatic
protected boolean isStaticFlag indicating whether this is a static dependency. -
isTransitive
protected boolean isTransitiveFlag indicating whether this is a transitive dependency.
-
-
Constructor Details
-
RequiresDirective
public RequiresDirective()Creates a blank requires directive.
-
RequiresDirective
Creates a requires directive.
- Parameters:
moduleName
- the name of the required moduleisStatic
- true for a static requires, false otherwiseisTransitive
- true for a transitive requires, false otherwise
-
-
Method Details
-
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
-