Home
last modified time | relevance | path

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

/external/dagger2/java/dagger/internal/codegen/binding/
DBindsTypeChecker.java58 TypeMirror rightHandSide, TypeMirror leftHandSide, ContributionType contributionType) { in isAssignable() argument
59 return types.isAssignable(rightHandSide, desiredAssignableType(leftHandSide, contributionType)); in isAssignable()
63 TypeMirror leftHandSide, ContributionType contributionType) { in desiredAssignableType() argument
64 switch (contributionType) { in desiredAssignableType()
77 throw new AssertionError("Unknown contribution type: " + contributionType); in desiredAssignableType()
DBindingFactory.java158 .contributionType(ContributionType.UNIQUE) in injectionBinding()
198 .contributionType(ContributionType.UNIQUE) in assistedFactoryBinding()
273 .contributionType(ContributionType.fromBindingElement(method)) in setMethodBindingProperties()
298 .contributionType(ContributionType.UNIQUE) in syntheticMultibinding()
324 .contributionType(ContributionType.UNIQUE) in componentBinding()
338 .contributionType(ContributionType.UNIQUE) in componentDependencyBinding()
374 .contributionType(ContributionType.UNIQUE) in componentDependencyMethodBinding()
390 .contributionType(ContributionType.UNIQUE) in boundInstanceBinding()
414 .contributionType(ContributionType.UNIQUE) in subcomponentCreatorBinding()
429 .contributionType(ContributionType.UNIQUE) in subcomponentCreatorBinding()
[all …]
DMultibindingDeclaration.java63 public abstract ContributionType contributionType(); in contributionType() method in MultibindingDeclaration
107 contributionType(returnType)); in forDeclaredMethod()
110 private ContributionType contributionType(TypeMirror returnType) { in contributionType() method in MultibindingDeclaration.Factory
DKeyFactory.java162 ContributionType contributionType = ContributionType.fromBindingElement(method); in forBindingMethod() local
169 } else if (contributionType.equals(ContributionType.SET_VALUES) in forBindingMethod()
179 TypeMirror keyType = bindingMethodKeyType(returnType, method, contributionType, frameworkType); in forBindingMethod()
181 return contributionType.equals(ContributionType.UNIQUE) in forBindingMethod()
211 ContributionType contributionType, in bindingMethodKeyType() argument
213 switch (contributionType) { in bindingMethodKeyType()
239 return delegateDeclaration.contributionType().equals(ContributionType.MAP) in forDelegateBinding()
DContributionBinding.java127 switch (contributionType()) { in contributedType()
171 public abstract B contributionType(ContributionType contributionType); in contributionType() argument
DFrameworkField.java82 return binding.contributionType().isMultibinding() in fieldValueType()
DDependencyRequestFactory.java113 switch (multibindingContribution.contributionType()) { in multibindingContributionRequestKind()
DBindingGraphFactory.java676 && binding.contributionType().equals(ContributionType.MAP)) { in resolverContainsDelegateDeclarationForBinding()
/external/dagger2/java/dagger/internal/codegen/writing/
DSetFactoryCreationExpression.java65 ContributionType contributionType = in creationExpression() local
66 graph.contributionBinding(dependency.key()).contributionType(); in creationExpression()
68 switch (contributionType) { in creationExpression()
DDelegateBindingExpression.java96 delegateExpression.type(), binding.contributedType(), binding.contributionType()) in instanceRequiresCast()
DSetBindingExpression.java160 .contributionType() in isSingleValue()
/external/dagger2/java/dagger/internal/codegen/validation/
DBindsMethodValidator.java97 ContributionType contributionType = ContributionType.fromBindingElement(element); in checkParameter() local
98 if (contributionType.equals(ContributionType.SET_VALUES) && !SetType.isSet(leftHandSide)) { in checkParameter()
103 if (!bindsTypeChecker.isAssignable(rightHandSide, leftHandSide, contributionType)) { in checkParameter()
/external/dagger2/java/dagger/internal/codegen/base/
DContributionType.java42 ContributionType contributionType(); in contributionType() method
/external/auto/common/src/test/java/com/google/auto/common/
DOverridesTest.java192 ContributionType contributionType(); in contributionType() method
203 @Override public abstract ContributionType contributionType(); in contributionType() method in OverridesTest.MoreTypesForInheritance.MultibindingDeclaration