Returns the key bound by a Binds method.
(ExecutableElement method, TypeElement contributingModule)
| 144 | |
| 145 | /** Returns the key bound by a {@link Binds} method. */ |
| 146 | Key forBindsMethod(ExecutableElement method, TypeElement contributingModule) { |
| 147 | checkArgument(isAnnotationPresent(method, Binds.class)); |
| 148 | return forBindingMethod(method, contributingModule, Optional.empty()); |
| 149 | } |
| 150 | |
| 151 | /** Returns the base key bound by a {@link BindsOptionalOf} method. */ |
| 152 | Key forBindsOptionalOfMethod(ExecutableElement method, TypeElement contributingModule) { |
no test coverage detected