Returns the component node for the root component.
()
| 109 | |
| 110 | /** Returns the component node for the root component. */ |
| 111 | public ComponentNode rootComponentNode() { |
| 112 | return componentNodeStream() |
| 113 | .filter(node -> node.componentPath().atRoot()) |
| 114 | .findFirst() |
| 115 | .get(); |
| 116 | } |
| 117 | |
| 118 | /** Returns the dependency edges. */ |
| 119 | public ImmutableSet<DependencyEdge> dependencyEdges() { |