| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Configuration | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | ModuleHashesBuilder(Configuration
Configuration for building module hashes config, Set<String> the candidate modules to be hashed modules)Constructs a ModuleHashesBuilder that finds the packaged modules from the location of ModuleReference found from the given Configuration. |
| Modifier and Type | Method and Description |
|---|---|
| public Map | computeHashes(Set<String> roots)
Returns a map of a module M to ModuleHashes for the modules that depend upon M directly or indirectly. |
| configuration | back to summary |
|---|---|
| private final Configuration configuration | |
| hashModuleCandidates | back to summary |
|---|---|
| private final Set<String> hashModuleCandidates | |
| ModuleHashesBuilder | back to summary |
|---|---|
| public ModuleHashesBuilder(Configuration config, Set<String> modules) Constructs a ModuleHashesBuilder that finds the packaged modules from the location of ModuleReference found from the given Configuration.
| |
| computeHashes | back to summary |
|---|---|
| public Map Returns a map of a module M to ModuleHashes for the modules that depend upon M directly or indirectly. The key for each entry in the returned map is a module M that has no outgoing edges to any of the candidate modules to be hashed i.e. M is a leaf node in a connected subgraph containing M and other candidate modules from the module graph filtering the outgoing edges from M to non-candidate modules. | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public boolean | |
| public Set | |
| public Set | |
| public Map | |
| public Set | |
| public void | |
| public Stream | |
| public void | |
| public void | |
| public ModuleHashesBuilder. |
| edges | back to summary |
|---|---|
| private final Map<T, Set<T>> edges | |
| nodes | back to summary |
|---|---|
| private final Set<T> nodes | |
| Graph | back to summary |
|---|---|
| public Graph(Set<T> nodes, Map<T, Set<T>> edges) | |
| adjacentNodes | back to summary |
|---|---|
| public Set | |
| contains | back to summary |
|---|---|
| public boolean contains(T u) | |
| dfs | back to summary |
|---|---|
| public Set Returns all nodes reachable from the given root. | |
| dfs | back to summary |
|---|---|
| public Set Returns all nodes reachable from the given set of roots. | |
| edges | back to summary |
|---|---|
| public Map | |
| nodes | back to summary |
|---|---|
| public Set | |
| ordered | back to summary |
|---|---|
| public void ordered(Consumer<T> action) Traverses this graph and performs the given action in topological order. | |
| orderedNodes | back to summary |
|---|---|
| public Stream Returns nodes sorted in topological order. | |
| printGraph | back to summary |
|---|---|
| public void printGraph(PrintStream out) | |
| reverse | back to summary |
|---|---|
| public void reverse(Consumer<T> action) Traverses this graph and performs the given action in reverse topological order. | |
| transpose | back to summary |
|---|---|
| public ModuleHashesBuilder. Returns a transposed graph from this graph. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | |
| pack-priv final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public ModuleHashesBuilder. |
| edges | back to summary |
|---|---|
| pack-priv final Map<T, Set<T>> edges | |
| nodes | back to summary |
|---|---|
| pack-priv final Set<T> nodes | |
| Builder | back to summary |
|---|---|
| pack-priv Builder() | |
| addEdge | back to summary |
|---|---|
| public void addEdge(T u, T v) | |
| addNode | back to summary |
|---|---|
| public void addNode(T node) | |
| build | back to summary |
|---|---|
| public ModuleHashesBuilder. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ModuleHashesBuilder. | |
| pack-priv final Deque |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private Set | |
| public void | |
| public void | |
| private void | |
| private void |
| graph | back to summary |
|---|---|
| pack-priv final ModuleHashesBuilder. | |
| result | back to summary |
|---|---|
| pack-priv final Deque<T> result | |
| TopoSorter | back to summary |
|---|---|
| pack-priv TopoSorter(ModuleHashesBuilder. | |
| children | back to summary |
|---|---|
| private Set | |
| ordered | back to summary |
|---|---|
| public void ordered(Consumer<T> action) | |
| reverse | back to summary |
|---|---|
| public void reverse(Consumer<T> action) | |
| sort | back to summary |
|---|---|
| private void sort() | |
| visit | back to summary |
|---|---|
| private void visit(T node, Set<T> visited, Deque<T> stack) | |