(ContributionBinding binding)
| 281 | } |
| 282 | |
| 283 | private static String factoryPrefix(ContributionBinding binding) { |
| 284 | switch (binding.kind()) { |
| 285 | case INJECTION: |
| 286 | return ""; |
| 287 | |
| 288 | case PROVISION: |
| 289 | case PRODUCTION: |
| 290 | return CaseFormat.LOWER_CAMEL.to( |
| 291 | UPPER_CAMEL, binding.bindingElement().get().getSimpleName().toString()); |
| 292 | |
| 293 | default: |
| 294 | throw new IllegalArgumentException(); |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | static ImmutableList<TypeVariableName> bindingTypeElementTypeVariableNames(Binding binding) { |
| 299 | if (binding instanceof ContributionBinding) { |
no test coverage detected