public class ModuleDependency extends Object
Constructor and Description |
---|
ModuleDependency(String name,
String version)
Create a new instance of ModuleDependency, where the sub module is
idenfied by its name and version.
|
ModuleDependency(String name,
String version,
boolean shared,
boolean reexport)
Create a new instance of ModuleDependency, where the sub module is
idenfied by its name and version and wheter the containing module
requires a private copy or not
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the module name
|
String |
getVersion()
Returns the module version
|
boolean |
isReexporting()
Returns true if the containing module is reexporting the public
interfaces of the sub module
|
boolean |
isShared()
Returns true if the containing module accept a shared implementation
of the sub module
|
String |
toString()
Returns a string representation
|
public ModuleDependency(String name, String version)
name
- the module nameversion
- the module versionpublic ModuleDependency(String name, String version, boolean shared, boolean reexport)
name
- the module nameversion
- the module versionshared
- true if the containing module accept a shared copypublic String getName()
public String getVersion()
public boolean isShared()
public boolean isReexporting()
Copyright © 2009–2023 Oracle Corporation. All rights reserved.