Home
last modified time | relevance | path

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

12

/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/
DMapMultibindingValidator.java38 import dagger.internal.codegen.binding.ContributionBinding;
76 ImmutableSet<ContributionBinding> contributions = in visitGraph()
130 private ImmutableSet<ContributionBinding> mapBindingContributions( in mapBindingContributions()
135 .map(b -> (ContributionBinding) b.delegate()) in mapBindingContributions()
141 ImmutableSet<ContributionBinding> contributions, in checkForDuplicateMapKeys()
143 ImmutableSetMultimap<?, ContributionBinding> contributionsByMapKey = in checkForDuplicateMapKeys()
145 Multimaps.index(contributions, ContributionBinding::wrappedMapKeyAnnotation)); in checkForDuplicateMapKeys()
147 for (Set<ContributionBinding> contributionsForOneMapKey : in checkForDuplicateMapKeys()
160 ImmutableSet<ContributionBinding> contributions, in checkForInconsistentMapKeyAnnotationTypes()
162 ImmutableSetMultimap<Equivalence.Wrapper<DeclaredType>, ContributionBinding> in checkForInconsistentMapKeyAnnotationTypes()
[all …]
/external/dagger2/java/dagger/internal/codegen/writing/
DComponentBindingExpressions.java47 import dagger.internal.codegen.binding.ContributionBinding;
153 CodeBlock getCreateMethodArgumentsCodeBlock(ContributionBinding binding) { in getCreateMethodArgumentsCodeBlock()
157 private ImmutableList<CodeBlock> getCreateMethodArgumentsCodeBlocks(ContributionBinding binding) { in getCreateMethodArgumentsCodeBlocks()
177 ContributionBinding binding, DependencyRequest dependency) { in frameworkRequest()
273 return provisionBindingExpression((ContributionBinding) binding, request); in createBindingExpression()
276 return productionBindingExpression((ContributionBinding) binding, request); in createBindingExpression()
285 private BindingExpression frameworkInstanceBindingExpression(ContributionBinding binding) { in frameworkInstanceBindingExpression()
312 ContributionBinding binding, FrameworkInstanceCreationExpression unscoped) { in scope()
325 ContributionBinding binding) { in frameworkInstanceCreationExpression()
389 ContributionBinding binding, ComponentRequirement componentRequirement) { in instanceFactoryCreationExpression()
[all …]
DInaccessibleMapKeyProxyGenerator.java28 import dagger.internal.codegen.binding.ContributionBinding;
43 extends SourceFileGenerator<ContributionBinding> {
56 public ClassName nameGeneratedType(ContributionBinding binding) { in nameGeneratedType()
61 public Element originatingElement(ContributionBinding binding) { in originatingElement()
67 public Optional<TypeSpec.Builder> write(ContributionBinding binding) { in write()
DSimpleInvocationBindingExpression.java21 import dagger.internal.codegen.binding.ContributionBinding;
25 private final ContributionBinding binding;
27 SimpleInvocationBindingExpression(ContributionBinding binding) { in SimpleInvocationBindingExpression()
DComponentInstanceBindingExpression.java21 import dagger.internal.codegen.binding.ContributionBinding;
27 private final ContributionBinding binding;
29 ComponentInstanceBindingExpression(ContributionBinding binding, ClassName componentName) { in ComponentInstanceBindingExpression()
DProducerCreationExpression.java23 import dagger.internal.codegen.binding.ContributionBinding;
34 private final ContributionBinding binding;
37 ContributionBinding binding, ComponentBindingExpressions componentBindingExpressions) { in ProducerCreationExpression()
DMapFactoryCreationExpression.java27 import dagger.internal.codegen.binding.ContributionBinding;
40 private final ContributionBinding binding;
44 ContributionBinding binding, in MapFactoryCreationExpression()
77 ContributionBinding contributionBinding = graph.contributionBinding(dependency.key()); in creationExpression()
DInnerSwitchingProviders.java29 import dagger.internal.codegen.binding.ContributionBinding;
57 BindingExpression newBindingExpression(ContributionBinding binding) { in newBindingExpression()
80 private final ContributionBinding binding;
83 SwitchCase(ContributionBinding binding, ClassName requestingClass) {
DInjectionOrProvisionProviderCreationExpression.java24 import dagger.internal.codegen.binding.ContributionBinding;
37 private final ContributionBinding binding;
41 ContributionBinding binding, ComponentBindingExpressions componentBindingExpressions) { in InjectionOrProvisionProviderCreationExpression()
DOptionalFactoryInstanceCreationExpression.java23 import dagger.internal.codegen.binding.ContributionBinding;
33 private final ContributionBinding binding;
39 ContributionBinding binding, in OptionalFactoryInstanceCreationExpression()
DDelegatingFrameworkInstanceCreationExpression.java24 import dagger.internal.codegen.binding.ContributionBinding;
33 private final ContributionBinding binding;
38 ContributionBinding binding, in DelegatingFrameworkInstanceCreationExpression()
DAnonymousProviderCreationExpression.java26 import dagger.internal.codegen.binding.ContributionBinding;
36 private final ContributionBinding binding;
41 ContributionBinding binding, in AnonymousProviderCreationExpression()
DMultibindingFactoryCreationExpression.java23 import dagger.internal.codegen.binding.ContributionBinding;
33 private final ContributionBinding binding;
36 ContributionBinding binding, in MultibindingFactoryCreationExpression()
DProducerFromProviderCreationExpression.java24 import dagger.internal.codegen.binding.ContributionBinding;
34 private final ContributionBinding binding;
39 ContributionBinding binding, in ProducerFromProviderCreationExpression()
DDelegateBindingExpression.java31 import dagger.internal.codegen.binding.ContributionBinding;
40 private final ContributionBinding binding;
47 ContributionBinding binding, in DelegateBindingExpression()
64 ContributionBinding bindsBinding, BindingGraph graph) { in isBindsScopeStrongerThanDependencyScope()
DFrameworkInstanceBindingExpression.java25 import dagger.internal.codegen.binding.ContributionBinding;
35 private final ContributionBinding binding;
41 ContributionBinding binding, in FrameworkInstanceBindingExpression()
DPrivateMethodBindingExpression.java29 import dagger.internal.codegen.binding.ContributionBinding;
40 private final ContributionBinding binding;
49 ContributionBinding binding, in PrivateMethodBindingExpression()
DSetFactoryCreationExpression.java27 import dagger.internal.codegen.binding.ContributionBinding;
34 private final ContributionBinding binding;
37 ContributionBinding binding, in SetFactoryCreationExpression()
DDependencyMethodProducerCreationExpression.java34 import dagger.internal.codegen.binding.ContributionBinding;
45 private final ContributionBinding binding;
51 ContributionBinding binding, in DependencyMethodProducerCreationExpression()
DMemberSelect.java20 import static dagger.internal.codegen.binding.ContributionBinding.FactoryCreationStrategy.SINGLETON…
40 import dagger.internal.codegen.binding.ContributionBinding;
112 static Optional<MemberSelect> staticFactoryCreation(ContributionBinding contributionBinding) { in staticFactoryCreation()
175 private static MemberSelect emptyMapFactory(ContributionBinding contributionBinding) { in emptyMapFactory()
194 private static MemberSelect emptySetFactory(ContributionBinding binding) { in emptySetFactory()
/external/dagger2/java/dagger/internal/codegen/binding/
DBindingGraphFactory.java126 ImmutableSet.Builder<ContributionBinding> explicitBindingsBuilder = ImmutableSet.builder(); in createLegacyBindingGraph()
146 HashMultimap<String, ContributionBinding> dedupeBindings = HashMultimap.create(); in createLegacyBindingGraph()
150 ContributionBinding binding = bindingFactory.componentDependencyMethodBinding( in createLegacyBindingGraph()
311 final ImmutableSetMultimap<Key, ContributionBinding> explicitBindings;
312 final ImmutableSet<ContributionBinding> explicitBindingsSet;
313 final ImmutableSetMultimap<Key, ContributionBinding> explicitMultibindings;
329 ImmutableSetMultimap<Key, ContributionBinding> explicitBindings, in Resolver()
367 Set<ContributionBinding> bindings = new LinkedHashSet<>(); in lookUpBindings()
368 Set<ContributionBinding> multibindingContributions = new LinkedHashSet<>(); in lookUpBindings()
524 private ImmutableSet<ContributionBinding> createDelegateBindings( in createDelegateBindings()
[all …]
DBindingFactory.java30 import static dagger.internal.codegen.binding.ContributionBinding.bindingKindForMultibindingKey;
255 private <C extends ContributionBinding, B extends ContributionBinding.Builder<C, B>>
291 public ContributionBinding syntheticMultibinding( in syntheticMultibinding()
292 Key key, Iterable<ContributionBinding> multibindingContributions) { in syntheticMultibinding()
293 ContributionBinding.Builder<?, ?> builder = in syntheticMultibinding()
307 Key key, Iterable<ContributionBinding> multibindingContributions) { in multibindingRequiresProduction()
353 public ContributionBinding componentDependencyMethodBinding( in componentDependencyMethodBinding()
357 ContributionBinding.Builder<?, ?> builder; in componentDependencyMethodBinding()
441 ContributionBinding delegateBinding( in delegateBinding()
442 DelegateDeclaration delegateDeclaration, ContributionBinding actualBinding) { in delegateBinding()
[all …]
DContributionBinding.java20 import static dagger.internal.codegen.binding.ContributionBinding.FactoryCreationStrategy.CLASS_CON…
21 import static dagger.internal.codegen.binding.ContributionBinding.FactoryCreationStrategy.DELEGATE;
22 import static dagger.internal.codegen.binding.ContributionBinding.FactoryCreationStrategy.SINGLETON…
49 public abstract class ContributionBinding extends Binding implements HasContributionType { class
162 public abstract static class Builder<C extends ContributionBinding, B extends Builder<C, B>> {
DResolvedBindings.java50 abstract ImmutableSetMultimap<TypeElement, ContributionBinding> allContributionBindings(); in allContributionBindings()
110 ImmutableSet<ContributionBinding> contributionBindings() { in contributionBindings()
119 final TypeElement owningComponent(ContributionBinding binding) { in owningComponent()
131 Multimap<TypeElement, ContributionBinding> contributionBindings, in forContributionBindings()
DSourceFiles.java141 ContributionBinding contribution = (ContributionBinding) binding; in generatedClassNameForBinding()
225 public static ClassName setFactoryClassName(ContributionBinding binding) { in setFactoryClassName()
236 public static ClassName mapFactoryClassName(ContributionBinding binding) { in mapFactoryClassName()
255 if (binding instanceof ContributionBinding) { in bindingTypeElementTypeVariableNames()
256 ContributionBinding contributionBinding = (ContributionBinding) binding; in bindingTypeElementTypeVariableNames()

12