Package dagger.model
Class ComponentPath
java.lang.Object
dagger.model.ComponentPath
A path containing a component and all of its ancestor components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanatRoot()final ComponentPathchildPath(TypeElement child) Returns the path from the root component to thechildof the current component.abstract com.google.common.collect.ImmutableList<TypeElement>Returns the component types, starting from the root component and ending with the current component.static ComponentPathcreate(Iterable<TypeElement> components) Returns a newComponentPathfromcomponents.Returns the component at the end of the path.abstract booleanabstract inthashCode()final ComponentPathparent()Returns this path's parent path.final TypeElementReturns the parent of the currentComponent() current component}.final TypeElementReturns the rootComponent- orProductionComponent-annotated typefinal StringtoString()
-
Constructor Details
-
ComponentPath
public ComponentPath()
-
-
Method Details
-
create
Returns a newComponentPathfromcomponents. -
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 thechildof the current component. -
atRoot
public final boolean atRoot() -
toString
-
hashCode
@Memoized public abstract int hashCode() -
equals
-