/external/dagger2/java/dagger/internal/codegen/binding/ |
D | FrameworkType.java | 40 public CodeBlock to(RequestKind requestKind, CodeBlock from) { in to() argument 41 switch (requestKind) { in to() 67 String.format("Cannot request a %s from a %s", requestKind, this)); in to() 72 public Expression to(RequestKind requestKind, Expression from, DaggerTypes types) { in to() argument 73 CodeBlock codeBlock = to(requestKind, from.codeBlock()); in to() 74 switch (requestKind) { in to() 91 types.rewrapType(from.type(), RequestKinds.frameworkClassName(requestKind)), in to() 100 public CodeBlock to(RequestKind requestKind, CodeBlock from) { in to() argument 101 switch (requestKind) { in to() 110 String.format("Cannot request a %s from a %s", requestKind, this)); in to() [all …]
|
D | BindingRequest.java | 47 public static BindingRequest bindingRequest(Key key, RequestKind requestKind) { in bindingRequest() argument 57 key, requestKind, FrameworkType.forRequestKind(requestKind)); in bindingRequest() 66 key, frameworkType.requestKind(), Optional.of(frameworkType)); in bindingRequest() 73 public abstract RequestKind requestKind(); in requestKind() method in BindingRequest 79 public final boolean isRequestKind(RequestKind requestKind) { in isRequestKind() argument 80 return requestKind.equals(requestKind()); in isRequestKind() 88 return requestType(requestKind(), contributedType, types); in requestedType() 93 return requestKind().toString(); in kindName()
|
D | FrameworkTypeMapper.java | 32 public FrameworkType getFrameworkType(RequestKind requestKind) { in FOR_PROVIDER() argument 33 switch (requestKind) { in FOR_PROVIDER() 41 throw new IllegalArgumentException(requestKind.toString()); in FOR_PROVIDER() 43 throw new AssertionError(requestKind); in FOR_PROVIDER() 49 public FrameworkType getFrameworkType(RequestKind requestKind) { in FOR_PRODUCER() argument 50 switch (requestKind) { in FOR_PRODUCER() 60 throw new AssertionError(requestKind); in FOR_PRODUCER() 69 public abstract FrameworkType getFrameworkType(RequestKind requestKind); in getFrameworkType() argument
|
D | DependencyRequestFactory.java | 256 RequestKind requestKind = getRequestKind(type); in newDependencyRequest() local 258 .kind(requestKind) in newDependencyRequest() 261 .isNullable(allowsNull(requestKind, getNullableType(requestElement))) in newDependencyRequest()
|
D | BindingFactory.java | 471 RequestKind requestKind, in syntheticOptionalBinding() argument 484 || requestKind.equals(RequestKind.PRODUCER) // handles producerFromProvider cases in syntheticOptionalBinding() 485 || requestKind.equals(RequestKind.PRODUCED); // handles producerFromProvider cases in syntheticOptionalBinding() 491 .dependencies(dependencyRequestFactory.forSyntheticPresentOptionalBinding(key, requestKind)) in syntheticOptionalBinding()
|
/external/dagger2/java/dagger/internal/codegen/base/ |
D | RequestKinds.java | 52 RequestKind requestKind, TypeMirror type, DaggerTypes types) { in requestType() argument 53 switch (requestKind) { in requestType() 64 return types.wrapType(type, frameworkClassName(requestKind)); in requestType() 69 public static TypeName requestTypeName(RequestKind requestKind, TypeName keyType) { in requestTypeName() argument 70 switch (requestKind) { in requestTypeName() 93 throw new AssertionError(requestKind); in requestTypeName() 143 private static XType extractKeyType(RequestKind requestKind, XType type) { in extractKeyType() argument 144 switch (requestKind) { in extractKeyType() 167 private static TypeMirror extractKeyType(RequestKind requestKind, TypeMirror type) { in extractKeyType() argument 168 switch (requestKind) { in extractKeyType() [all …]
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | DerivedFromFrameworkInstanceRequestRepresentation.java | 40 private final RequestKind requestKind; field in DerivedFromFrameworkInstanceRequestRepresentation 49 @Assisted RequestKind requestKind, in DerivedFromFrameworkInstanceRequestRepresentation() argument 55 this.requestKind = requestKind; in DerivedFromFrameworkInstanceRequestRepresentation() 65 requestKind, in getDependencyExpression() 78 requestKind, in getDependencyExpressionForComponentMethod() 89 && requestKind.equals(RequestKind.INSTANCE) in requiresTypeCast() 98 RequestKind requestKind, in create() argument
|
D | ExperimentalSwitchingProviderDependencyRepresentation.java | 71 Expression getDependencyExpression(RequestKind requestKind, ProvisionBinding requestingBinding) { in getDependencyExpression() argument 77 requestKind, in getDependencyExpression() 81 if (usesExplicitTypeCast(expression, requestKind)) { in getDependencyExpression() 84 if (usesErasedTypeCast(requestKind)) { in getDependencyExpression() 106 private boolean usesExplicitTypeCast(Expression expression, RequestKind requestKind) { in usesExplicitTypeCast() argument 108 return requestKind.equals(RequestKind.INSTANCE) in usesExplicitTypeCast() 113 private boolean usesErasedTypeCast(RequestKind requestKind) { in usesErasedTypeCast() argument 115 return requestKind.equals(RequestKind.INSTANCE) in usesErasedTypeCast()
|
D | DelegateRequestRepresentation.java | 46 private final RequestKind requestKind; field in DelegateRequestRepresentation 54 @Assisted RequestKind requestKind, in DelegateRequestRepresentation() argument 59 this.requestKind = checkNotNull(requestKind); in DelegateRequestRepresentation() 83 bindingRequest(getOnlyElement(binding.dependencies()).key(), requestKind), in getDependencyExpression() 87 switch (requestKind) { in getDependencyExpression() 94 delegateExpression, requestType(requestKind, contributedType, types)); in getDependencyExpression() 153 DelegateRequestRepresentation create(ContributionBinding binding, RequestKind requestKind); in create() argument
|
D | ProvisionBindingRepresentation.java | 80 return usesDirectInstanceExpression(request.requestKind()) in getRequestRepresentation() 85 private boolean usesDirectInstanceExpression(RequestKind requestKind) { in usesDirectInstanceExpression() argument 89 if (requestKind != RequestKind.INSTANCE && requestKind != RequestKind.FUTURE) { in usesDirectInstanceExpression()
|
D | FrameworkInstanceBindingRepresentation.java | 86 switch (request.requestKind()) { in getRequestRepresentationUncached() 92 binding, providerRequestRepresentation, request.requestKind(), FrameworkType.PROVIDER); in getRequestRepresentationUncached() 105 String.format("Invalid binding request kind: %s", request.requestKind())); in getRequestRepresentationUncached()
|
D | DirectInstanceBindingRepresentation.java | 76 switch (request.requestKind()) { in getRequestRepresentationUncached() 89 String.format("Invalid binding request kind: %s", request.requestKind())); in getRequestRepresentationUncached()
|
D | ProductionBindingRepresentation.java | 87 request.requestKind(), in getRequestRepresentationUncached()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | DependencyRequestValidator.java | 153 RequestKind requestKind = RequestKinds.getRequestKind(requestType); in checkType() local 154 if (!(requestKind == RequestKind.INSTANCE || requestKind == RequestKind.PROVIDER) in checkType()
|
D | ExternalBindingGraphConverter.java | 141 private static RequestKind fromSpiModel(dagger.spi.model.RequestKind requestKind) { in fromSpiModel() argument 142 return RequestKind.valueOf(requestKind.name()); in fromSpiModel()
|
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/ |
D | DependencyCycleValidator.java | 225 RequestKind requestKind = getRequestKind(optionalValueType); in breaksCycle() local 226 return breaksCycle(extractKeyType(optionalValueType), requestKind); in breaksCycle() 231 private boolean breaksCycle(XType requestedType, RequestKind requestKind) { in breaksCycle() argument 232 switch (requestKind) { in breaksCycle()
|