Package | Description |
---|---|
dagger.spi.model |
This package contains the APIs that are core to Dagger's internal model of bindings and the
binding graph.
|
Modifier and Type | Method and Description |
---|---|
DaggerTypeElement |
DaggerAnnotation.annotationTypeElement() |
DaggerTypeElement |
ComponentPath.currentComponent()
Returns the component at the end of the path.
|
static DaggerTypeElement |
DaggerTypeElement.fromJava(javax.lang.model.element.TypeElement element) |
static DaggerTypeElement |
DaggerTypeElement.fromKsp(com.google.devtools.ksp.symbol.KSClassDeclaration element) |
DaggerTypeElement |
ComponentPath.parentComponent()
Returns the parent of the ComponentPath.currentComponent() current component}.
|
DaggerTypeElement |
ComponentPath.rootComponent()
Returns the root
Component - or ProductionComponent -annotated type |
Modifier and Type | Method and Description |
---|---|
abstract com.google.common.collect.ImmutableList<DaggerTypeElement> |
ComponentPath.components()
Returns the component types, starting from the root
component and ending with the current component.
|
java.util.Optional<DaggerTypeElement> |
Binding.contributingModule()
The
DaggerTypeElement of the module which contributes this binding. |
com.google.common.collect.ImmutableSet<DaggerTypeElement> |
BindingGraph.SubcomponentCreatorBindingEdge.declaringModules()
The modules that declare the subcomponent that generated
this edge.
|
Modifier and Type | Method and Description |
---|---|
ComponentPath |
ComponentPath.childPath(DaggerTypeElement child)
Returns the path from the root component to the
child of the current component. |
com.google.common.collect.ImmutableSet<BindingGraph.ComponentNode> |
BindingGraph.componentNodes(DaggerTypeElement component)
Returns the component nodes for a component.
|
static boolean |
Scope.isScope(DaggerTypeElement scopeAnnotationType)
Returns
true if scopeAnnotationType is a Scope annotation. |
Modifier and Type | Method and Description |
---|---|
static ComponentPath |
ComponentPath.create(java.lang.Iterable<DaggerTypeElement> components)
Returns a new
ComponentPath from components . |