|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.javascript.jscomp.deps.SortedDependencies<INPUT>
public class SortedDependencies<INPUT extends DependencyInfo>
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 | |
---|---|
static class |
SortedDependencies.CircularDependencyException
|
static class |
SortedDependencies.MissingProvideException
|
Constructor Summary | |
---|---|
SortedDependencies(List<INPUT> inputs)
|
Method Summary | |
---|---|
List<INPUT> |
getDependenciesOf(List<INPUT> roots,
boolean sorted)
Gets all the dependencies of the given roots. |
INPUT |
getInputProviding(String symbol)
Return the input that gives us the given symbol. |
List<INPUT> |
getInputsWithoutProvides()
|
List<INPUT> |
getSortedDependenciesOf(List<INPUT> roots)
Gets all the dependencies of the given roots. |
List<INPUT> |
getSortedList()
|
INPUT |
maybeGetInputProviding(String symbol)
Return the input that gives us the given symbol, or null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortedDependencies(List<INPUT> inputs) throws SortedDependencies.CircularDependencyException
SortedDependencies.CircularDependencyException
Method Detail |
---|
public INPUT getInputProviding(String symbol) throws SortedDependencies.MissingProvideException
SortedDependencies.MissingProvideException
- An exception if there is no
input for this symbol.public INPUT maybeGetInputProviding(String symbol)
public List<INPUT> getSortedList()
public List<INPUT> getSortedDependenciesOf(List<INPUT> roots)
public List<INPUT> getDependenciesOf(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 List<INPUT> getInputsWithoutProvides()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |