Class SortedDependencies<INPUT extends DependencyInfo>
java.lang.Object
com.google.javascript.jscomp.deps.SortedDependencies<INPUT>
A sorted list of inputs with dependency information. Uses a stable
topological 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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDependenciesOf
(List<INPUT> roots, boolean sorted) Gets all the dependencies of the given roots.getInputProviding
(String symbol) Return the input that gives us the given symbol.getSortedDependenciesOf
(List<INPUT> roots) Gets all the dependencies of the given roots.maybeGetInputProviding
(String symbol) Return the input that gives us the given symbol, or null.
-
Constructor Details
-
SortedDependencies
-
-
Method Details
-
getInputProviding
Return the input that gives us the given symbol.- Throws:
SortedDependencies.MissingProvideException
- An exception if there is no input for this symbol.
-
maybeGetInputProviding
Return the input that gives us the given symbol, or null. -
getSortedList
-
getSortedDependenciesOf
Gets all the dependencies of the given roots. The inputs must be returned in a stable order. In other words, if A comes before B, and A does not transitively depend on B, then A must also come before B in the returned list. -
getDependenciesOf
Gets all the dependencies of the given roots. The inputs must be returned in a stable order. In other words, if A comes before B, and A does not transitively depend on B, then A must also come before B in the returned list.- Parameters:
sorted
- If true, get them in topologically sorted order. If false, get them in the original order they were passed to the compiler.
-
getInputsWithoutProvides
-