public class DependencyList extends Object
Constructor and Description |
---|
DependencyList(ModuleDeps explicitDeps,
ModuleDeps expandedDeps,
Set<String> dependentFeatures)
Constructs a DependencyList from pre-specified values
|
DependencyList(String source,
Iterable<String> names,
IAggregator aggr,
Features features,
boolean resolveAliases,
boolean includeDetails)
Object constructor.
|
DependencyList(String source,
Iterable<String> names,
IAggregator aggr,
Features features,
boolean resolveAliases,
boolean includeDetails,
boolean includeRequireDeps)
Object constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getDependentFeatures()
Returns the set of features that were discovered when evaluating has!
plugin expressions or aliases when expanding the dependencies.
|
ModuleDeps |
getExpandedDeps()
Returns the set of expanded dependencies for the modules specified in
names . |
ModuleDeps |
getExplicitDeps()
Returns the explicit dependencies for the modules specified in
names . |
String |
getLabel()
Returns the label set by
setLabel(String) |
void |
setCoerceUndefinedToFalse(boolean state) |
void |
setLabel(String label)
Associates an arbitrary text string with this object.
|
public DependencyList(String source, Iterable<String> names, IAggregator aggr, Features features, boolean resolveAliases, boolean includeDetails)
source
- The declaring source. Included in diagnostic details.names
- The list of normalized module ids for which expanded
dependencies are needed.aggr
- The aggregator servletfeatures
- The map of feature-name value pairs to use for resolving has!
plugin expressions and aliasesresolveAliases
- Flag indicating if alias resolution should be performed on the
module ids specified in names
. (Note: alias
resolution is always performed for expanded dependencies.includeDetails
- Flag indicating if diagnostic details should be included with
the expanded dependenciespublic DependencyList(String source, Iterable<String> names, IAggregator aggr, Features features, boolean resolveAliases, boolean includeDetails, boolean includeRequireDeps)
source
- The declaring source. Included in diagnostic details.names
- The list of normalized module ids for which expanded
dependencies are needed.aggr
- The aggregator servletfeatures
- The map of feature-name value pairs to use for resolving has!
plugin expressions and aliasesresolveAliases
- Flag indicating if alias resolution should be performed on the
module ids specified in names
. (Note: alias
resolution is always performed for expanded dependencies.includeDetails
- Flag indicating if diagnostic details should be included with
the expanded dependenciesincludeRequireDeps
- Flag indicating whether or not to include dependencies specified
in require() calls.public DependencyList(ModuleDeps explicitDeps, ModuleDeps expandedDeps, Set<String> dependentFeatures)
explicitDeps
- expandedDeps
- dependentFeatures
- public ModuleDeps getExplicitDeps() throws IOException
names
. This includes the specified modules, plus any module
names resulting from resolving has! plugin expressions and aliases for
the specified modules.
The set of explicit dependencies is the key set of the returned map. The
value set of the map contains diagnostic details regarding the dependency
expansion of each module if includeDetails
was true when the
object was constructed. Otherwise, the value objects will all be null.
names
.IOException
public ModuleDeps getExpandedDeps() throws IOException
names
. This set generally does not include the modules
specified in names, but is
is not exclusive of that list either. A module specified in names
may be included in the result by virtue of being a dependency of another
module.
The set of expanded names is the key set of the returned map. The value
set of the map contains diagnostic details regarding the dependency
expansion of each module if includeDetails
was true when the
object was constructed. Otherwise, the value objects will all be null.
names
.IOException
public Set<String> getDependentFeatures() throws IOException
IOException
public void setLabel(String label)
label
- The string to associate with this objectpublic void setCoerceUndefinedToFalse(boolean state)
public String getLabel()
setLabel(String)
Copyright © 2011-2015 IBM. All Rights Reserved.