Package dagger.spi.model
Interface BindingGraph.MaybeBinding
-
- All Superinterfaces:
BindingGraph.Node
- All Known Subinterfaces:
Binding
- All Known Implementing Classes:
BindingGraph.MissingBinding
- Enclosing class:
- BindingGraph
public static interface BindingGraph.MaybeBinding extends BindingGraph.Node
A node in the binding graph that is either aBinding
or aBindingGraph.MissingBinding
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<Binding>
binding()
The binding, or empty if missing.ComponentPath
componentPath()
The component that owns the binding, or in which the binding is missing.Key
key()
The key of the binding, or for which there is no binding.
-
-
-
Method Detail
-
componentPath
ComponentPath componentPath()
The component that owns the binding, or in which the binding is missing.- Specified by:
componentPath
in interfaceBindingGraph.Node
-
key
Key key()
The key of the binding, or for which there is no binding.
-
binding
java.util.Optional<Binding> binding()
The binding, or empty if missing.
-
-