public class SortedDependencies<INPUT extends DependencyInfo>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SortedDependencies.CircularDependencyException |
static class |
SortedDependencies.MissingProvideException |
Constructor and Description |
---|
SortedDependencies(java.util.List<INPUT> inputs) |
Modifier and Type | Method and Description |
---|---|
java.util.List<INPUT> |
getDependenciesOf(java.util.List<INPUT> roots,
boolean sorted)
Gets all the dependencies of the given roots.
|
INPUT |
getInputProviding(java.lang.String symbol)
Return the input that gives us the given symbol.
|
java.util.List<INPUT> |
getInputsWithoutProvides() |
java.util.List<INPUT> |
getSortedDependenciesOf(java.util.List<INPUT> roots)
Gets all the dependencies of the given roots.
|
java.util.List<INPUT> |
getSortedList() |
INPUT |
maybeGetInputProviding(java.lang.String symbol)
Return the input that gives us the given symbol, or null.
|
public SortedDependencies(java.util.List<INPUT> inputs) throws SortedDependencies.CircularDependencyException
public INPUT getInputProviding(java.lang.String symbol) throws SortedDependencies.MissingProvideException
SortedDependencies.MissingProvideException
- An exception if there is no
input for this symbol.public INPUT maybeGetInputProviding(java.lang.String symbol)
public java.util.List<INPUT> getSortedList()
public java.util.List<INPUT> getSortedDependenciesOf(java.util.List<INPUT> roots)
public java.util.List<INPUT> getDependenciesOf(java.util.List<INPUT> roots, boolean sorted)
sorted
- If true, get them in topologically sorted order. If false,
get them in the original order they were passed to the compiler.public java.util.List<INPUT> getInputsWithoutProvides()