MCPcopy Index your code
hub / github.com/google/dagger / factoryPrefix

Method factoryPrefix

java/dagger/internal/codegen/SourceFiles.java:283–296  ·  view source on GitHub ↗
(ContributionBinding binding)

Source from the content-addressed store, hash-verified

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) {

Callers 1

Calls 5

toMethod · 0.80
kindMethod · 0.65
getMethod · 0.65
bindingElementMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected