/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
D | ResolvedBindings.java | 41 abstract BindingKey bindingKey(); in bindingKey() method in ResolvedBindings 70 switch (bindingKey().kind()) { in bindings() 78 throw new AssertionError(bindingKey()); in bindings() 86 switch (bindingKey().kind()) { in ownedBindings() 94 throw new AssertionError(bindingKey()); in ownedBindings() 105 checkState(bindingKey().kind().equals(BindingKey.Kind.CONTRIBUTION)); in contributionBindings() 116 checkState(bindingKey().kind().equals(BindingKey.Kind.CONTRIBUTION)); in ownedContributionBindings() 127 checkState(bindingKey().kind().equals(BindingKey.Kind.MEMBERS_INJECTION)); in membersInjectionBinding() 142 checkState(bindingKey().kind().equals(BindingKey.Kind.MEMBERS_INJECTION)); in ownedMembersInjectionBinding() 150 BindingKey bindingKey, in forContributionBindings() argument [all …]
|
D | FrameworkField.java | 47 Class<?> frameworkClass, BindingKey bindingKey, String name) { in createWithTypeFromKey() argument 51 TypeNames.forTypeMirror(bindingKey.key().type())); in createWithTypeFromKey() 52 return new AutoValue_FrameworkField(frameworkClass, frameworkType, bindingKey, in createWithTypeFromKey() 57 Class<?> frameworkClass, BindingKey bindingKey, String name) { in createForMapBindingContribution() argument 59 MoreTypes.asDeclared(bindingKey.key().type()).getTypeArguments().get(1); in createForMapBindingContribution() 62 bindingKey, in createForMapBindingContribution() 72 contributionBinding.bindingKey(), in createForSyntheticContributionBinding() 81 contributionBinding.bindingKey(), in createForSyntheticContributionBinding() 91 BindingKey bindingKey = resolvedBindings.bindingKey(); in createForResolvedBindings() local 92 switch (bindingKey.kind()) { in createForResolvedBindings() [all …]
|
D | BindingGraph.java | 128 return (input.bindingKey().kind().equals(CONTRIBUTION)) in componentRequirements() 308 BindingKey bindingKey = request.bindingKey(); 309 switch (bindingKey.kind()) { 313 getExplicitBindings(bindingKey.key()); 317 Optional<Key> mapProviderKey = keyFactory.implicitMapProviderKeyFrom(bindingKey.key()); 324 Optional<Key> mapProducerKey = keyFactory.implicitMapProducerKeyFrom(bindingKey.key()); 333 keyFactory.implicitSetKeyFromProduced(bindingKey.key()); 349 bindingKey, componentDescriptor, bindings.build()); 355 bindingKey, 363 bindingKey, [all …]
|
D | AbstractComponentWriter.java | 233 protected InitializationState getInitializationState(BindingKey bindingKey) { in getInitializationState() argument 234 return initializationStates.containsKey(bindingKey) in getInitializationState() 235 ? initializationStates.get(bindingKey) in getInitializationState() 239 private void setInitializationState(BindingKey bindingKey, InitializationState state) { in setInitializationState() argument 240 initializationStates.put(bindingKey, state); in setInitializationState() 462 BindingKey bindingKey = resolvedBindings.bindingKey(); in addField() local 472 memberSelectSnippets.put(bindingKey, staticMemberSelect.get()); in addField() 479 if (bindingKey.kind().equals(BindingKey.Kind.CONTRIBUTION)) { in addField() 517 bindingKey, in addField() 543 switch (resolvedBindings.bindingKey().kind()) { in staticMemberSelect() [all …]
|
D | SourceFiles.java | 87 BindingKey resolved = dependency.bindingKey(); in indexDependenciesByUnresolvedKey() 112 dependenciesByKeyBuilder.put(dependency.bindingKey(), dependency); in indexDependenciesByKey() 139 BindingKey bindingKey = entry.getKey(); in generateBindingFieldsForDependencies() local 150 bindingFields.put(bindingKey, in generateBindingFieldsForDependencies() 151 FrameworkField.createWithTypeFromKey(frameworkClass, bindingKey, name)); in generateBindingFieldsForDependencies() 162 bindingFields.put(bindingKey, FrameworkField.createWithTypeFromKey( in generateBindingFieldsForDependencies() 163 frameworkClass, bindingKey, compositeNameBuilder.toString())); in generateBindingFieldsForDependencies()
|
D | ProducerFactoryGenerator.java | 116 fields.get(binding.monitorRequest().get().bindingKey()).name(), in write() 174 String name = fields.get(dependency.bindingKey()).name(); in write() 296 "%s", fields.get(dependency.bindingKey()).name()), dependency.kind())); in parameterSnippets() 315 return Snippet.format("%s", fields.get(asyncDependency.bindingKey()).name() + "Future"); in futureSnippet() 340 "%s", fields.get(dependency.bindingKey()).name()), dependency.kind())); in parameterSnippets() 370 public Snippet apply(BindingKey bindingKey) { in futureSnippet() 371 return Snippet.format("%s", fields.get(bindingKey).name() + "Future"); in futureSnippet() 436 Snippet.format("%s", fields.get(dependency.bindingKey()).name()), dependency.kind()));
|
D | MembersInjectorGenerator.java | 164 BindingKey bindingKey = fieldEntry.getKey(); 170 !VISIBLE_TO_MEMBERS_INJECTOR.visit(bindingKey.key().type(), binding); 197 dependencyFieldsBuilder.put(bindingKey, field); 294 Snippet.format("%s", dependencyFields.get(dependency.bindingKey()).name()); 329 FieldWriter field = dependencyFields.get(dependency.bindingKey());
|
D | Binding.java | 127 BindingKey bindingKey() { in bindingKey() method in Binding 169 protected static Optional<String> findBindingPackage(Key bindingKey) { in findBindingPackage() argument 170 Set<String> packages = nonPublicPackageUse(bindingKey.type()); in findBindingPackage()
|
D | SubcomponentWriter.java | 75 protected InitializationState getInitializationState(BindingKey bindingKey) { in getInitializationState() argument 76 InitializationState initializationState = super.getInitializationState(bindingKey); in getInitializationState() 78 ? parent.getInitializationState(bindingKey) in getInitializationState()
|
D | BindingGraphValidator.java | 247 BindingKey requestKey = request.bindingKey(); in traverseRequest() 285 switch (resolvedBinding.bindingKey().kind()) { in validateResolvedBinding() 720 if (bindings.bindingKey().kind().equals(BindingKey.Kind.CONTRIBUTION)) { in validateComponentScope() 788 BindingKey bindingKey = path.peek().request().bindingKey(); in reportMissingBinding() local 816 for (String suggestion : MissingBindingSuggestions.forKey(topLevelGraph, bindingKey)) { in reportMissingBinding() 1144 BindingKey bindingKey = request.bindingKey(); 1145 ResolvedBindings resolvedBindings = graph.resolvedBindings().get(bindingKey); 1149 ? ResolvedBindings.noBindings(bindingKey, graph.componentDescriptor())
|
D | DependencyRequest.java | 67 return request.bindingKey(); 94 BindingKey bindingKey() { in bindingKey() method in DependencyRequest
|
D | FactoryGenerator.java | 227 Snippet.format(fields.get(dependency.bindingKey()).name()), dependency.kind())); in write()
|
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
D | MultibinderTest.java | 905 Key<?> bindingKey = entry.getKey(); in testKeyHashCodesFixedAtInjectionTime() local 907 if (bindingKey.getAnnotation() != null) { in testKeyHashCodesFixedAtInjectionTime() 908 clonedKey = Key.get(bindingKey.getTypeLiteral(), bindingKey.getAnnotation()); in testKeyHashCodesFixedAtInjectionTime() 909 } else if (bindingKey.getAnnotationType() != null) { in testKeyHashCodesFixedAtInjectionTime() 910 clonedKey = Key.get(bindingKey.getTypeLiteral(), bindingKey.getAnnotationType()); in testKeyHashCodesFixedAtInjectionTime() 912 clonedKey = Key.get(bindingKey.getTypeLiteral()); in testKeyHashCodesFixedAtInjectionTime() 914 assertEquals(bindingKey, clonedKey); in testKeyHashCodesFixedAtInjectionTime() 915 assertEquals("Incorrect hashcode for " + bindingKey + " -> " + entry.getValue(), in testKeyHashCodesFixedAtInjectionTime() 916 bindingKey.hashCode(), clonedKey.hashCode()); in testKeyHashCodesFixedAtInjectionTime()
|
D | OptionalBinderTest.java | 1116 Key<?> bindingKey = entry.getKey(); in testKeyHashCodesFixedAtInjectionTime() local 1118 if (bindingKey.getAnnotation() != null) { in testKeyHashCodesFixedAtInjectionTime() 1119 clonedKey = Key.get(bindingKey.getTypeLiteral(), bindingKey.getAnnotation()); in testKeyHashCodesFixedAtInjectionTime() 1120 } else if (bindingKey.getAnnotationType() != null) { in testKeyHashCodesFixedAtInjectionTime() 1121 clonedKey = Key.get(bindingKey.getTypeLiteral(), bindingKey.getAnnotationType()); in testKeyHashCodesFixedAtInjectionTime() 1123 clonedKey = Key.get(bindingKey.getTypeLiteral()); in testKeyHashCodesFixedAtInjectionTime() 1125 assertEquals(bindingKey, clonedKey); in testKeyHashCodesFixedAtInjectionTime() 1126 assertEquals("Incorrect hashcode for " + bindingKey + " -> " + entry.getValue(), in testKeyHashCodesFixedAtInjectionTime() 1127 bindingKey.hashCode(), clonedKey.hashCode()); in testKeyHashCodesFixedAtInjectionTime()
|