public static final class ComponentTreeTraverser.ComponentTreePath extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
atRoot()
|
dagger.internal.codegen.BindingGraph |
currentGraph()
Returns the binding graph for the component at the end of the path.
|
dagger.internal.codegen.BindingGraph |
graphForComponent(dagger.internal.codegen.ComponentDescriptor component)
Returns the binding graph within this path that represents the given component.
|
ImmutableList<dagger.internal.codegen.BindingGraph> |
graphsInPath()
Returns the binding graphs in the path, starting from the root
graph and ending with the current graph.
|
dagger.internal.codegen.BindingGraph |
parentGraph()
Returns the binding graph for the parent of the current
component.
|
dagger.internal.codegen.BindingGraph |
rootGraph()
Returns the binding graph for the root component.
|
dagger.internal.codegen.BindingGraph |
rootmostGraph(Iterable<dagger.internal.codegen.ComponentDescriptor> components)
Returns the rootmost binding graph in the component path among the given components.
|
public ImmutableList<dagger.internal.codegen.BindingGraph> graphsInPath()
public dagger.internal.codegen.BindingGraph currentGraph()
public dagger.internal.codegen.BindingGraph parentGraph()
IllegalStateException - if the current graph is the root graphpublic dagger.internal.codegen.BindingGraph rootGraph()
public boolean atRoot()
public dagger.internal.codegen.BindingGraph rootmostGraph(Iterable<dagger.internal.codegen.ComponentDescriptor> components)
public dagger.internal.codegen.BindingGraph graphForComponent(dagger.internal.codegen.ComponentDescriptor component)
Copyright © 2012–2017 The Dagger Authors. All rights reserved.