public abstract class ComponentPath
extends java.lang.Object
| Constructor and Description |
|---|
ComponentPath() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
atRoot()
|
ComponentPath |
childPath(DaggerTypeElement child)
Returns the path from the root component to the
child of the current component. |
abstract com.google.common.collect.ImmutableList<DaggerTypeElement> |
components()
Returns the component types, starting from the root
component and ending with the current component.
|
static ComponentPath |
create(java.lang.Iterable<DaggerTypeElement> components)
Returns a new
ComponentPath from components. |
DaggerTypeElement |
currentComponent()
Returns the component at the end of the path.
|
abstract boolean |
equals(java.lang.Object obj) |
abstract int |
hashCode() |
ComponentPath |
parent()
Returns this path's parent path.
|
DaggerTypeElement |
parentComponent()
Returns the parent of the currentComponent() current component}.
|
DaggerTypeElement |
rootComponent()
Returns the root
Component- or ProductionComponent-annotated type |
java.lang.String |
toString() |
public static ComponentPath create(java.lang.Iterable<DaggerTypeElement> components)
ComponentPath from components.public abstract com.google.common.collect.ImmutableList<DaggerTypeElement> components()
public final DaggerTypeElement rootComponent()
Component- or ProductionComponent-annotated type@Memoized public DaggerTypeElement currentComponent()
public final DaggerTypeElement parentComponent()
java.lang.IllegalStateException - if the current graph is the root componentpublic final ComponentPath parent()
java.lang.IllegalStateException - if the current graph is the root componentpublic final ComponentPath childPath(DaggerTypeElement child)
child of the current component.public final boolean atRoot()
public final java.lang.String toString()
toString in class java.lang.Object@Memoized public abstract int hashCode()
hashCode in class java.lang.Objectpublic abstract boolean equals(java.lang.Object obj)
equals in class java.lang.Object