Home
last modified time | relevance | path

Searched refs:ContributionBinding (Results 1 – 14 of 14) sorted by relevance

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DContributionBinding.java57 abstract class ContributionBinding extends Binding { class
174 static Predicate<ContributionBinding> isOfKind(final Kind kind) { in isOfKind()
175 return new Predicate<ContributionBinding>() { in isOfKind()
177 public boolean apply(ContributionBinding binding) { in isOfKind()
221 static <B extends ContributionBinding>
238 static ContributionType contributionTypeFor(Iterable<ContributionBinding> bindings) {
242 for (ContributionBinding binding : bindings) {
257 static ImmutableSetMultimap<Object, ContributionBinding> indexMapBindingsByMapKey(
258 Set<ContributionBinding> mapBindings) {
262 new Function<ContributionBinding, Object>() {
[all …]
DResolvedBindings.java29 import static dagger.internal.codegen.ContributionBinding.contributionTypeFor;
56 abstract ImmutableSetMultimap<ComponentDescriptor, ContributionBinding> allContributionBindings(); in allContributionBindings()
104 ImmutableSet<ContributionBinding> contributionBindings() { in contributionBindings()
115 ImmutableSet<ContributionBinding> ownedContributionBindings() { in ownedContributionBindings()
152 Multimap<ComponentDescriptor, ? extends ContributionBinding> contributionBindings) { in forContributionBindings()
157 ImmutableSetMultimap.<ComponentDescriptor, ContributionBinding>copyOf(contributionBindings), in forContributionBindings()
167 ContributionBinding... ownedContributionBindings) { in forContributionBindings()
171 ImmutableSetMultimap.<ComponentDescriptor, ContributionBinding>builder() in forContributionBindings()
187 ImmutableSetMultimap.<ComponentDescriptor, ContributionBinding>of(), in forMembersInjectionBinding()
198 ImmutableSetMultimap.<ComponentDescriptor, ContributionBinding>of(), in noBindings()
DBindingGraph.java125 new Function<ResolvedBindings, Set<ContributionBinding>>() { in componentRequirements()
127 public Set<ContributionBinding> apply(ResolvedBindings input) { in componentRequirements()
130 : ImmutableSet.<ContributionBinding>of(); in componentRequirements()
134 new Function<ContributionBinding, Set<TypeElement>>() { in componentRequirements()
136 public Set<TypeElement> apply(ContributionBinding input) { in componentRequirements()
181 ImmutableSet.Builder<ContributionBinding> explicitBindingsBuilder = ImmutableSet.builder();
222 for (ContributionBinding binding : moduleDescriptor.bindings()) {
263 private <B extends ContributionBinding> ImmutableSetMultimap<Key, B> explicitBindingsByKey(
276 final ImmutableSetMultimap<Key, ContributionBinding> explicitBindings;
277 final ImmutableSet<ContributionBinding> explicitBindingsSet;
[all …]
DBindingGraphValidator.java43 import dagger.internal.codegen.ContributionBinding.ContributionType;
86 import static dagger.internal.codegen.ContributionBinding.indexMapBindingsByAnnotationType;
87 import static dagger.internal.codegen.ContributionBinding.indexMapBindingsByMapKey;
287 ImmutableSet<ContributionBinding> contributionBindings = in validateResolvedBinding()
304 ImmutableListMultimap<ContributionType, ContributionBinding> contributionsByType = in validateResolvedBinding()
305 ContributionBinding.contributionTypesFor(contributionBindings); in validateResolvedBinding()
343 DependencyRequest request, Set<ContributionBinding> bindings) { in validateNullability()
356 for (ContributionBinding binding : bindings) { in validateNullability()
375 Deque<ResolvedRequest> path, Set<ContributionBinding> mapBindings) { in hasDuplicateMapKeys()
377 for (Collection<ContributionBinding> mapBindingsForMapKey : in hasDuplicateMapKeys()
[all …]
DFrameworkField.java34 import static dagger.internal.codegen.ContributionBinding.contributionTypeFor;
67 int contributionNumber, ContributionBinding contributionBinding) { in createForSyntheticContributionBinding()
94 ImmutableSet<ContributionBinding> contributionBindings = in createForResolvedBindings()
104 ContributionBinding binding = getOnlyElement(contributionBindings); in createForResolvedBindings()
DSourceFiles.java194 ContributionBinding contribution = (ContributionBinding) binding; in generatedClassNameForBinding()
236 ContributionBinding contributionBinding = (ContributionBinding) binding; in bindingTypeParameters()
290 private static String factoryPrefix(ContributionBinding binding) { in factoryPrefix()
DContributionBindingFormatter.java29 final class ContributionBindingFormatter extends Formatter<ContributionBinding> {
36 @Override public String format(ContributionBinding binding) { in format()
DAbstractComponentWriter.java94 import static dagger.internal.codegen.ContributionBinding.contributionTypeFor;
95 import static dagger.internal.codegen.ContributionBinding.FactoryCreationStrategy.ENUM_INSTANCE;
96 import static dagger.internal.codegen.ContributionBinding.Kind.PROVISION;
136 private final Map<ContributionBinding, MemberSelect> multibindingContributionSnippets =
226 protected Optional<MemberSelect> getMultibindingContributionSnippet(ContributionBinding binding) { in getMultibindingContributionSnippet()
480 ImmutableSet<ContributionBinding> contributionBindings = in addField()
482 if (ContributionBinding.contributionTypeFor(contributionBindings).isMultibinding()) { in addField()
486 for (ContributionBinding contributionBinding : contributionBindings) { in addField()
548 ContributionBinding contributionBinding = in staticMemberSelect()
747 for (ContributionBinding binding : resolvedBindings.contributionBindings()) { in initializeSetMultibindings()
[all …]
DModuleDescriptor.java45 abstract ImmutableSet<ContributionBinding> bindings();
71 ImmutableSet.Builder<ContributionBinding> bindings = ImmutableSet.builder();
DProducerFactoryGenerator.java158 binding.bindingKind().equals(ContributionBinding.Kind.FUTURE_PRODUCTION); in write()
468 if (binding.bindingKind().equals(ContributionBinding.Kind.FUTURE_PRODUCTION)) {
DProductionBinding.java48 abstract class ProductionBinding extends ContributionBinding {
DSubcomponentWriter.java96 protected Optional<MemberSelect> getMultibindingContributionSnippet(ContributionBinding binding) { in getMultibindingContributionSnippet()
DProvisionBinding.java56 abstract class ProvisionBinding extends ContributionBinding {
DFactoryGenerator.java55 import static dagger.internal.codegen.ContributionBinding.Kind.PROVISION;