public final class ModuleDescriptor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ModuleDescriptor.Builder
Builds instances of
ModuleDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
void |
applySlot(String slot)
Sets the slot to the given value, if the slot is not set.
|
static ModuleDescriptor |
copy(String name,
ModuleDescriptor originalModule)
Creates a shallow copy of the module descriptor.
|
static ModuleDescriptor |
create(String name)
Creates a module with a given name.
|
boolean |
equals(Object object) |
ApplyToDependencies |
getApplyToDependencies()
Returns the information that has to be applied to dependencies if the
matcher matches the name of a module.
|
ApplyToModule |
getApplyToModule()
Returns the module information to be applied to the generated module.
|
Directives |
getDirectives()
Returns the directives for this module.
|
ArtifactMatcher |
getMatcher()
Returns the artifact matcher to define the rules for matching artifacts to
be included as resources to a module.
|
String |
getName()
Returns the name of the module.
|
String |
getSlot()
Returns the name of the slot this module is part of.
|
int |
hashCode() |
MatchContext |
match(org.eclipse.aether.artifact.Artifact artifact)
Checks if the given artifact matches the module descriptor.
|
void |
merge(ModuleDescriptor moduleDescriptor)
Merges the dependencies, properties, port and export of the given module
descriptor with this one.
|
String |
toString() |
public static ModuleDescriptor copy(String name, ModuleDescriptor originalModule)
name - the name of the module.originalModule - the descriptor to shallow copy.public static ModuleDescriptor create(String name)
name - the name of the module.public String getName()
public String getSlot()
null.public Directives getDirectives()
public ArtifactMatcher getMatcher()
public ApplyToDependencies getApplyToDependencies()
public ApplyToModule getApplyToModule()
public void applySlot(String slot)
slot - the slot to set.public MatchContext match(org.eclipse.aether.artifact.Artifact artifact)
artifact - the artifact to match.true if the module descriptor matches the given
artifact, false otherwise.public void merge(ModuleDescriptor moduleDescriptor) throws NullPointerException, IllegalArgumentException
moduleDescriptor - the module descriptor to merge with this instance.NullPointerException - if moduleDescriptor is
null.IllegalArgumentException - if the module descriptor is illegal to be
merged.Copyright © 2013–2019 FuseSource. All rights reserved.