Package dagger.spi.model
Class ComponentPath
java.lang.Object
dagger.spi.model.ComponentPath
A path containing a component and all of its ancestor components.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
atRoot()
final ComponentPath
childPath
(DaggerTypeElement child) Returns the path from the root component to thechild
of the current component.abstract com.google.common.collect.ImmutableList<DaggerTypeElement>
Returns the component types, starting from the root component and ending with the current component.static ComponentPath
create
(Iterable<DaggerTypeElement> components) Returns a newComponentPath
fromcomponents
.Returns the component at the end of the path.abstract boolean
abstract int
hashCode()
final ComponentPath
parent()
Returns this path's parent path.final DaggerTypeElement
Returns the parent of the currentComponent() current component}.final DaggerTypeElement
Returns the rootComponent
- orProductionComponent
-annotated typefinal String
toString()
-
Constructor Details
-
ComponentPath
public ComponentPath()
-
-
Method Details
-
create
Returns a newComponentPath
fromcomponents
. -
components
Returns the component types, starting from the root component and ending with the current component. -
rootComponent
Returns the rootComponent
- orProductionComponent
-annotated type -
currentComponent
Returns the component at the end of the path. -
parentComponent
Returns the parent of the currentComponent() current component}.- Throws:
IllegalStateException
- if the current graph is the root component
-
parent
Returns this path's parent path.- Throws:
IllegalStateException
- if the current graph is the root component
-
childPath
Returns the path from the root component to thechild
of the current component. -
atRoot
public final boolean atRoot() -
toString
-
hashCode
@Memoized public abstract int hashCode() -
equals
-