Module io.inverno.tool.buildtools
Package io.inverno.tool.buildtools
Class ModuleInfo.OpensDirective
java.lang.Object
io.inverno.tool.buildtools.ModuleInfo.OpensDirective
- Enclosing class:
ModuleInfo
Represents an opens directive in a module descriptor.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates an empty opens directive.OpensDirective
(String packageName, List<String> to) Creates an opens directive. -
Method Summary
-
Field Details
-
packageName
The name of the opened package. -
to
The names of the modules to which the package is opened. -
remove
protected boolean removeFlag indicating whether the directive should be removed if it exists.
-
-
Constructor Details
-
OpensDirective
public OpensDirective()Creates an empty opens directive.
-
OpensDirective
Creates an opens directive.
- Parameters:
packageName
- the name of the opened packageto
- the list of modules to which the package is opened
-
-
Method Details
-
getPackage
Returns the name of the opened package.
- Returns:
- the name of the opened package
-
getTo
Returns the list of modules to which the package is opened.
- Returns:
- the list of modules to which the package is opened
-
isRemove
public boolean isRemove()Determines whether the directive should be removed when defined.
- Returns:
- true to remove the directive false otherwise
-
toString
-