Home
last modified time | relevance | path

Searched refs:RequestKind (Results 1 – 25 of 29) sorted by relevance

12

/external/dagger2/java/dagger/internal/codegen/base/
DRequestKinds.java29 import static dagger.model.RequestKind.LAZY;
30 import static dagger.model.RequestKind.PRODUCED;
31 import static dagger.model.RequestKind.PRODUCER;
32 import static dagger.model.RequestKind.PROVIDER;
33 import static dagger.model.RequestKind.PROVIDER_OF_LAZY;
41 import dagger.model.RequestKind;
52 RequestKind requestKind, TypeMirror type, DaggerTypes types) { in requestType()
69 public static TypeName requestTypeName(RequestKind requestKind, TypeName keyType) { in requestTypeName()
97 private static final ImmutableMap<RequestKind, Class<?>> FRAMEWORK_CLASSES =
105 public static RequestKind getRequestKind(TypeMirror type) { in getRequestKind()
[all …]
/external/dagger2/java/dagger/internal/codegen/binding/
DFrameworkType.java21 import static dagger.model.RequestKind.INSTANCE;
36 import dagger.model.RequestKind;
54 public Optional<RequestKind> requestKind() { in requestKind()
55 return Optional.of(RequestKind.PROVIDER); in requestKind()
59 public CodeBlock to(RequestKind requestKind, CodeBlock from) { in to()
89 public Expression to(RequestKind requestKind, Expression from, DaggerTypes types) { in to()
124 public Optional<RequestKind> requestKind() { in requestKind()
129 public CodeBlock to(RequestKind requestKind, CodeBlock from) { in to()
144 public Expression to(RequestKind requestKind, Expression from, DaggerTypes types) { in to()
175 public static Optional<FrameworkType> forRequestKind(RequestKind requestKind) { in forRequestKind()
[all …]
DDependencyRequestFactory.java29 import static dagger.model.RequestKind.FUTURE;
30 import static dagger.model.RequestKind.INSTANCE;
31 import static dagger.model.RequestKind.MEMBERS_INJECTION;
32 import static dagger.model.RequestKind.PRODUCER;
33 import static dagger.model.RequestKind.PROVIDER;
42 import dagger.model.RequestKind;
108 private static final ImmutableSet<RequestKind> WRAPPING_MAP_VALUE_FRAMEWORK_TYPES =
111 private RequestKind multibindingContributionRequestKind( in multibindingContributionRequestKind()
116 for (RequestKind kind : WRAPPING_MAP_VALUE_FRAMEWORK_TYPES) { in multibindingContributionRequestKind()
210 DependencyRequest forSyntheticPresentOptionalBinding(Key requestKey, RequestKind kind) { in forSyntheticPresentOptionalBinding()
[all …]
DFrameworkTypeMapper.java21 import dagger.model.RequestKind;
32 public FrameworkType getFrameworkType(RequestKind requestKind) { in FOR_PROVIDER()
49 public FrameworkType getFrameworkType(RequestKind requestKind) { in FOR_PRODUCER()
69 public abstract FrameworkType getFrameworkType(RequestKind requestKind); in getFrameworkType()
DBindingRequest.java25 import dagger.model.RequestKind;
45 public static BindingRequest bindingRequest(Key key, RequestKind requestKind) { in bindingRequest()
71 public abstract Optional<RequestKind> requestKind(); in requestKind()
77 public final boolean isRequestKind(RequestKind requestKind) { in isRequestKind()
DLegacyBindingGraph.java25 import dagger.model.RequestKind;
54 return request.isRequestKind(RequestKind.MEMBERS_INJECTION) in resolvedBindings()
DBindingFactory.java68 import dagger.model.RequestKind;
205 .kind(RequestKind.PROVIDER) in assistedFactoryBinding()
502 RequestKind requestKind, in syntheticOptionalBinding()
515 || requestKind.equals(RequestKind.PRODUCER) // handles producerFromProvider cases in syntheticOptionalBinding()
516 || requestKind.equals(RequestKind.PRODUCED); // handles producerFromProvider cases in syntheticOptionalBinding()
DSourceFiles.java58 import dagger.model.RequestKind;
107 CodeBlock frameworkTypeMemberSelect, RequestKind dependencyKind) { in frameworkTypeUsageStatement()
/external/dagger2/javatests/dagger/internal/codegen/
DFrameworkTypeMapperTest.java20 import static dagger.model.RequestKind.INSTANCE;
21 import static dagger.model.RequestKind.LAZY;
22 import static dagger.model.RequestKind.PRODUCED;
23 import static dagger.model.RequestKind.PRODUCER;
24 import static dagger.model.RequestKind.PROVIDER;
/external/dagger2/java/dagger/internal/codegen/writing/
DComponentBindingExpressions.java62 import dagger.model.RequestKind;
202 if (dependencyRequest.kind().equals(RequestKind.INSTANCE) in getDependencyArgumentExpression()
246 request.isRequestKind(RequestKind.MEMBERS_INJECTION) in getBindingExpression()
268 checkArgument(request.isRequestKind(RequestKind.MEMBERS_INJECTION)); in createBindingExpression()
407 RequestKind requestKind = request.requestKind().get(); in provisionBindingExpression()
442 RequestKind requestKind = request.requestKind().get(); in productionBindingExpression()
462 return new DelegateBindingExpression(binding, RequestKind.PROVIDER, this, types, elements); in providerBindingExpression()
470 bindingRequest(binding.key(), RequestKind.PROVIDER), in providerBindingExpression()
511 bindingRequest(binding.key(), RequestKind.INSTANCE), in instanceBindingExpression()
516 binding.key(), FrameworkType.PROVIDER, RequestKind.INSTANCE, this, types); in instanceBindingExpression()
[all …]
DDerivedFromFrameworkInstanceBindingExpression.java29 import dagger.model.RequestKind;
35 private final RequestKind requestKind;
43 RequestKind requestKind, in DerivedFromFrameworkInstanceBindingExpression()
DProducerEntryPointView.java28 import dagger.model.RequestKind;
61 && (componentMethod.dependencyRequest().get().kind().equals(RequestKind.FUTURE) in getProducerEntryPointField()
62 || componentMethod.dependencyRequest().get().kind().equals(RequestKind.PRODUCER))) { in getProducerEntryPointField()
DDelegateBindingExpression.java35 import dagger.model.RequestKind;
41 private final RequestKind requestKind;
48 RequestKind requestKind, in DelegateBindingExpression()
DProducerFromProviderCreationExpression.java28 import dagger.model.RequestKind;
50 RequestKind.PRODUCER, in creationExpression()
DImmediateFutureBindingExpression.java29 import dagger.model.RequestKind;
59 bindingRequest(key, RequestKind.INSTANCE), requestingClass); in instanceExpression()
DMethodBindingExpression.java42 import dagger.model.RequestKind;
151 if (request.isRequestKind(RequestKind.INSTANCE) in returnType()
229 request.isRequestKind(RequestKind.INSTANCE) in createField()
254 return request.isRequestKind(RequestKind.INSTANCE) && binding.isNullable(); in isNullable()
DAssistedFactoryBindingExpression.java37 import dagger.model.RequestKind;
71 BindingRequest.bindingRequest(assistedInjectionRequest.key(), RequestKind.INSTANCE), in getDependencyExpression()
DAnonymousProviderCreationExpression.java21 import static dagger.model.RequestKind.INSTANCE;
DInnerSwitchingProviders.java21 import static dagger.model.RequestKind.INSTANCE;
DOptionalFactories.java64 import dagger.model.RequestKind;
191 abstract RequestKind valueKind();
DComponentImplementation.java53 import dagger.model.RequestKind;
364 + (request.isRequestKind(RequestKind.INSTANCE) in uniqueMethodName()
/external/dagger2/java/dagger/model/
DDependencyRequest.java40 public abstract RequestKind kind(); in kind()
66 public abstract Builder kind(RequestKind kind); in kind()
DRequestKind.java34 public enum RequestKind { enum
/external/dagger2/java/dagger/internal/codegen/validation/
DDependencyRequestValidator.java39 import dagger.model.RequestKind;
118 RequestKind requestKind = RequestKinds.getRequestKind(requestType); in checkType()
128 if (requestKind != RequestKind.INSTANCE && isAssistedFactoryType(typeElement)) { in checkType()
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/
DDependencyCycleValidator.java50 import dagger.model.RequestKind;
215 RequestKind requestKind = getRequestKind(optionalValueType); in breaksCycle()
221 private boolean breaksCycle(TypeMirror requestedType, RequestKind requestKind) { in breaksCycle()

12