Home
last modified time | relevance | path

Searched refs:frameworkType (Results 1 – 15 of 15) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/writing/
DDerivedFromFrameworkInstanceBindingExpression.java36 private final FrameworkType frameworkType; field in DerivedFromFrameworkInstanceBindingExpression
42 FrameworkType frameworkType, in DerivedFromFrameworkInstanceBindingExpression() argument
46 this.frameworkRequest = bindingRequest(key, frameworkType); in DerivedFromFrameworkInstanceBindingExpression()
48 this.frameworkType = checkNotNull(frameworkType); in DerivedFromFrameworkInstanceBindingExpression()
55 return frameworkType.to( in getDependencyExpression()
67 return frameworkType.to(requestKind, frameworkInstance, types); in getDependencyExpressionForComponentMethod()
DOptionalFactories.java95 .thenComparing(PresentFactorySpec::frameworkType)
185 abstract FrameworkType frameworkType();
210 return frameworkType().frameworkClassOf(optionalType());
215 return frameworkType().frameworkClassOf(typeVariable());
220 switch (frameworkType()) {
237 switch (frameworkType()) {
247 switch (frameworkType()) {
253 throw new AssertionError(frameworkType());
261 .append(frameworkType().frameworkClass().getSimpleName())
358 switch (spec.frameworkType()) {
[all …]
DMultibindingFactoryCreationExpression.java49 BindingRequest.bindingRequest(dependency.key(), binding.frameworkType()), in multibindingDependencyExpression()
54 ? CodeBlocks.cast(expression, binding.frameworkType().frameworkClass()) in multibindingDependencyExpression()
60 return BindingRequest.bindingRequest(binding.key(), binding.frameworkType()); in bindingRequest()
DFrameworkInstanceBindingExpression.java63 ? types.wrapType(binding.contributedType(), frameworkType().frameworkClass()) in getDependencyExpression()
69 protected abstract FrameworkType frameworkType(); in frameworkType() method in FrameworkInstanceBindingExpression
87 return types.getDeclaredType(elements.getTypeElement(frameworkType().frameworkClass())); in rawFrameworkType()
DDelegatingFrameworkInstanceCreationExpression.java52 bindingRequest(dependency.key(), binding.frameworkType()), in creationExpression()
55 binding.frameworkType().frameworkClass()); in creationExpression()
DProviderInstanceBindingExpression.java40 protected FrameworkType frameworkType() { in frameworkType() method in ProviderInstanceBindingExpression
DOptionalFactoryInstanceCreationExpression.java57 getOnlyElement(binding.dependencies()).key(), binding.frameworkType()), in creationExpression()
DProducerNodeInstanceBindingExpression.java50 protected FrameworkType frameworkType() { in frameworkType() method in ProducerNodeInstanceBindingExpression
DComponentBindingExpressions.java179 FrameworkType frameworkType = in frameworkRequest() local
182 return BindingRequest.bindingRequest(dependency.key(), frameworkType); in frameworkRequest()
402 request.frameworkType().get().equals(FrameworkType.PRODUCER_NODE), in provisionBindingExpression()
438 if (request.frameworkType().isPresent()) { in productionBindingExpression()
DMethodBindingExpression.java74 if (request.frameworkType().isPresent()) { in getDependencyExpression()
/external/dagger2/java/dagger/internal/codegen/binding/
DBindingRequest.java62 public static BindingRequest bindingRequest(Key key, FrameworkType frameworkType) { in bindingRequest() argument
64 key, frameworkType.requestKind(), Optional.of(frameworkType)); in bindingRequest()
74 public abstract Optional<FrameworkType> frameworkType(); in frameworkType() method in BindingRequest
85 return types.wrapType(contributedType, frameworkType().get().frameworkClass()); in requestedType()
93 : frameworkType().get().frameworkClass().getSimpleName(); in kindName()
DKeyFactory.java101 TypeMirror keyType, TypeElement frameworkType, TypeMirror valueType) { in mapOfFrameworkType() argument
102 return mapOf(keyType, types.getDeclaredType(frameworkType, boxPrimitives(valueType))); in mapOfFrameworkType()
157 Optional<TypeElement> frameworkType) { in forBindingMethod() argument
164 if (frameworkType.isPresent() in forBindingMethod()
165 && frameworkType.get().equals(elements.getTypeElement(Producer.class)) in forBindingMethod()
179 TypeMirror keyType = bindingMethodKeyType(returnType, method, contributionType, frameworkType); in forBindingMethod()
212 Optional<TypeElement> frameworkType) { in bindingMethodKeyType() argument
220 return frameworkType.isPresent() in bindingMethodKeyType()
221 ? mapOfFrameworkType(mapKeyType, frameworkType.get(), returnType) in bindingMethodKeyType()
238 Key forDelegateBinding(DelegateDeclaration delegateDeclaration, Class<?> frameworkType) { in forDelegateBinding() argument
[all …]
DBinding.java77 public final FrameworkType frameworkType() { in frameworkType() method in Binding
DBindingFactory.java477 Class<?> frameworkType) { in buildDelegateBinding() argument
486 .key(keyFactory.forDelegateBinding(delegateDeclaration, frameworkType)) in buildDelegateBinding()
/external/dagger2/javatests/dagger/internal/codegen/
DFrameworkFieldTest.java49 @Test public void frameworkType() { in frameworkType() method in FrameworkFieldTest