Lines Matching refs:contributionBinding
112 static Optional<MemberSelect> staticFactoryCreation(ContributionBinding contributionBinding) { in staticFactoryCreation() argument
113 if (contributionBinding.factoryCreationStrategy().equals(SINGLETON_INSTANCE) in staticFactoryCreation()
114 && !contributionBinding.scope().isPresent()) { in staticFactoryCreation()
115 switch (contributionBinding.kind()) { in staticFactoryCreation()
117 return Optional.of(emptyMapFactory(contributionBinding)); in staticFactoryCreation()
120 return Optional.of(emptySetFactory(contributionBinding)); in staticFactoryCreation()
124 TypeMirror keyType = contributionBinding.key().type(); in staticFactoryCreation()
127 bindingTypeElementTypeVariableNames(contributionBinding); in staticFactoryCreation()
133 generatedClassNameForBinding(contributionBinding), typeArguments)); in staticFactoryCreation()
141 generatedClassNameForBinding(contributionBinding), CodeBlock.of("create()"))); in staticFactoryCreation()
175 private static MemberSelect emptyMapFactory(ContributionBinding contributionBinding) { in emptyMapFactory() argument
176 BindingType bindingType = contributionBinding.bindingType(); in emptyMapFactory()
179 MoreTypes.asDeclared(contributionBinding.key().type()).getTypeArguments()); in emptyMapFactory()