public interface SortedDependencies<INPUT extends DependencyInfo>
Performs a sort to make sure that an input always comes after its dependencies.
Also exposes other information about the inputs, like which inputs do not provide symbols. TODO(tbreisacher): Consider removing this interface, since it now has only one class implementing it.
Modifier and Type | Interface and Description |
---|---|
static class |
SortedDependencies.MissingProvideException |
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.
|
INPUT getInputProviding(java.lang.String symbol) throws SortedDependencies.MissingProvideException
SortedDependencies.MissingProvideException
- An exception if there is no
input for this symbol.INPUT maybeGetInputProviding(java.lang.String symbol)
java.util.List<INPUT> getSortedList()
java.util.List<INPUT> getSortedDependenciesOf(java.util.List<INPUT> roots)
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.java.util.List<INPUT> getInputsWithoutProvides()
Copyright © 2009-2017 Google. All Rights Reserved.