Home
last modified time | relevance | path

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

/external/dagger2/javatests/dagger/internal/codegen/
DFrameworkTypeMapperTest.java26 import dagger.internal.codegen.binding.FrameworkType;
37 assertThat(mapper.getFrameworkType(INSTANCE)).isEqualTo(FrameworkType.PROVIDER); in forProvider()
38 assertThat(mapper.getFrameworkType(LAZY)).isEqualTo(FrameworkType.PROVIDER); in forProvider()
39 assertThat(mapper.getFrameworkType(PROVIDER)).isEqualTo(FrameworkType.PROVIDER); in forProvider()
44 assertThat(mapper.getFrameworkType(INSTANCE)).isEqualTo(FrameworkType.PRODUCER_NODE); in forProducer()
45 assertThat(mapper.getFrameworkType(LAZY)).isEqualTo(FrameworkType.PROVIDER); in forProducer()
46 assertThat(mapper.getFrameworkType(PROVIDER)).isEqualTo(FrameworkType.PROVIDER); in forProducer()
47 assertThat(mapper.getFrameworkType(PRODUCER)).isEqualTo(FrameworkType.PRODUCER_NODE); in forProducer()
48 assertThat(mapper.getFrameworkType(PRODUCED)).isEqualTo(FrameworkType.PRODUCER_NODE); in forProducer()
/external/dagger2/java/dagger/internal/codegen/binding/
DFrameworkTypeMapper.java32 public FrameworkType getFrameworkType(RequestKind requestKind) { in FOR_PROVIDER()
38 return FrameworkType.PROVIDER; in FOR_PROVIDER()
49 public FrameworkType getFrameworkType(RequestKind requestKind) { in FOR_PRODUCER()
54 return FrameworkType.PRODUCER_NODE; in FOR_PRODUCER()
58 return FrameworkType.PROVIDER; in FOR_PRODUCER()
69 public abstract FrameworkType getFrameworkType(RequestKind requestKind); in getFrameworkType()
DBindingRequest.java55 key, Optional.of(requestKind), FrameworkType.forRequestKind(requestKind)); in bindingRequest()
62 public static BindingRequest bindingRequest(Key key, FrameworkType frameworkType) { in bindingRequest()
74 public abstract Optional<FrameworkType> frameworkType(); in frameworkType()
DFrameworkType.java45 public enum FrameworkType { enum
163 public static FrameworkType forBindingType(BindingType bindingType) { in forBindingType()
175 public static Optional<FrameworkType> forRequestKind(RequestKind requestKind) { in forRequestKind()
178 return Optional.of(FrameworkType.PROVIDER); in forRequestKind()
DBinding.java77 public final FrameworkType frameworkType() { in frameworkType()
78 return FrameworkType.forBindingType(bindingType()); in frameworkType()
DFrameworkField.java76 FrameworkType.forBindingType(binding.bindingType()).frameworkClass())), in forBinding()
/external/dagger2/java/dagger/internal/codegen/writing/
DProviderInstanceBindingExpression.java20 import dagger.internal.codegen.binding.FrameworkType;
40 protected FrameworkType frameworkType() { in frameworkType()
41 return FrameworkType.PROVIDER; in frameworkType()
DProducerFromProviderCreationExpression.java25 import dagger.internal.codegen.binding.FrameworkType;
49 return FrameworkType.PROVIDER.to( in creationExpression()
53 bindingRequest(binding.key(), FrameworkType.PROVIDER), in creationExpression()
DProducerNodeInstanceBindingExpression.java24 import dagger.internal.codegen.binding.FrameworkType;
50 protected FrameworkType frameworkType() { in frameworkType()
51 return FrameworkType.PRODUCER_NODE; in frameworkType()
DDerivedFromFrameworkInstanceBindingExpression.java25 import dagger.internal.codegen.binding.FrameworkType;
36 private final FrameworkType frameworkType;
42 FrameworkType frameworkType, in DerivedFromFrameworkInstanceBindingExpression()
DFrameworkInstanceBindingExpression.java26 import dagger.internal.codegen.binding.FrameworkType;
69 protected abstract FrameworkType frameworkType(); in frameworkType()
DOptionalFactories.java62 import dagger.internal.codegen.binding.FrameworkType;
185 abstract FrameworkType frameworkType();
267 FrameworkType.forBindingType(binding.bindingType()),
366 FrameworkType.PROVIDER.to(
382 FrameworkType.PRODUCER_NODE.to(
DComponentBindingExpressions.java48 import dagger.internal.codegen.binding.FrameworkType;
179 FrameworkType frameworkType = in frameworkRequest()
402 request.frameworkType().get().equals(FrameworkType.PRODUCER_NODE), in provisionBindingExpression()
420 key, FrameworkType.PROVIDER, requestKind, this, types); in provisionBindingExpression()
444 request.key(), FrameworkType.PRODUCER_NODE, requestKind, this, types); in productionBindingExpression()
516 binding.key(), FrameworkType.PROVIDER, RequestKind.INSTANCE, this, types); in instanceBindingExpression()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentImplementationBuilder.java61 import dagger.internal.codegen.binding.FrameworkType;
258 bindingRequest(cancellationKey, FrameworkType.PRODUCER_NODE), in cancellationStatements()