Returns the key for a binding associated with a DelegateDeclaration. If delegateDeclaration is @IntoMap, transforms the Map key from DelegateDeclaration#key() to Map >. If delegateDeclaration is not a map contribution,
(DelegateDeclaration delegateDeclaration, Class<?> frameworkType)
| 243 | * delegateDeclaration} is not a map contribution, its key is returned. |
| 244 | */ |
| 245 | Key forDelegateBinding(DelegateDeclaration delegateDeclaration, Class<?> frameworkType) { |
| 246 | return delegateDeclaration.contributionType().equals(ContributionType.MAP) |
| 247 | ? wrapMapValue(delegateDeclaration.key(), frameworkType) |
| 248 | : delegateDeclaration.key(); |
| 249 | } |
| 250 | |
| 251 | private Key forMethod(ExecutableElement method, TypeMirror keyType) { |
| 252 | return forQualifiedType(getQualifier(method), keyType); |
no test coverage detected