Home
last modified time | relevance | path

Searched refs:dependencyRequest (Results 1 – 19 of 19) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/binding/
DDependencyEdgeImpl.java26 private final DependencyRequest dependencyRequest; field in DependencyEdgeImpl
29 DependencyEdgeImpl(DependencyRequest dependencyRequest, boolean entryPoint) { in DependencyEdgeImpl() argument
30 this.dependencyRequest = dependencyRequest; in DependencyEdgeImpl()
35 public DependencyRequest dependencyRequest() { in dependencyRequest() method in DependencyEdgeImpl
36 return dependencyRequest; in dependencyRequest()
47 dependencyRequest in toString()
53 + dependencyRequest.kind().format(dependencyRequest.key())); in toString()
DBindingGraphConverter.java176 visitEntryPoint(currentComponent, entryPointMethod.dependencyRequest().get()); in visitComponent()
183 for (DependencyRequest dependencyRequest : binding.dependencies()) { in visitComponent()
184 addDependencyEdges(binding, dependencyRequest); in visitComponent()
287 private void addDependencyEdges(Node source, DependencyRequest dependencyRequest) { in addDependencyEdges() argument
288 ResolvedBindings dependencies = resolvedDependencies(source, dependencyRequest); in addDependencyEdges()
290 addDependencyEdge(source, dependencyRequest, missingBindingNode(dependencies)); in addDependencyEdges()
293 addDependencyEdge(source, dependencyRequest, dependency); in addDependencyEdges()
299 Node source, DependencyRequest dependencyRequest, Node dependency) { in addDependencyEdge() argument
301 if (!hasDependencyEdge(source, dependency, dependencyRequest)) { in addDependencyEdge()
305 new DependencyEdgeImpl(dependencyRequest, source instanceof ComponentNode)); in addDependencyEdge()
[all …]
DComponentDescriptor.java252 .dependencyRequest() in doesComponentMethodMatch()
262 .filter(method -> method.dependencyRequest().isPresent()) in entryPointMethods()
311 public abstract Optional<DependencyRequest> dependencyRequest(); in dependencyRequest() method in ComponentDescriptor.ComponentMethodDescriptor
322 checkState(dependencyRequest().isPresent()); in resolvedReturnType()
328 return BindingRequest.bindingRequest(dependencyRequest().get()) in resolvedReturnType()
329 .requestedType(dependencyRequest().get().key().type(), types); in resolvedReturnType()
346 Builder dependencyRequest(DependencyRequest dependencyRequest); in dependencyRequest() argument
DBindingRequest.java37 public static BindingRequest bindingRequest(DependencyRequest dependencyRequest) { in bindingRequest() argument
38 return bindingRequest(dependencyRequest.key(), dependencyRequest.kind()); in bindingRequest()
DDependencyRequestFormatter.java80 StringBuilder builder, DependencyRequest dependencyRequest) { in appendFormatLine() argument
81 String formatted = format(dependencyRequest); in appendFormatLine()
DComponentDescriptorFactory.java173 if (componentMethodDescriptor.dependencyRequest().isPresent()) { in create()
246 descriptor.dependencyRequest( in getDescriptorForComponentMethod()
261 descriptor.dependencyRequest( in getDescriptorForComponentMethod()
DComponentNodeImpl.java49 .map(method -> method.dependencyRequest().get()) in entryPoints()
DBindingGraphFactory.java211 .map(method -> method.dependencyRequest().get()) in createLegacyBindingGraph()
/external/dagger2/java/dagger/internal/codegen/writing/
DProducerEntryPointView.java61 && (componentMethod.dependencyRequest().get().kind().equals(RequestKind.FUTURE) in getProducerEntryPointField()
62 || componentMethod.dependencyRequest().get().kind().equals(RequestKind.PRODUCER))) { in getProducerEntryPointField()
108 return types.wrapType(componentMethod.dependencyRequest().get().key().type(), Producer.class); in fieldType()
DComponentBindingExpressions.java196 DependencyRequest dependencyRequest, ClassName requestingClass) { in getDependencyArgumentExpression() argument
198 TypeMirror dependencyType = dependencyRequest.key().type(); in getDependencyArgumentExpression()
199 BindingRequest bindingRequest = bindingRequest(dependencyRequest); in getDependencyArgumentExpression()
202 if (dependencyRequest.kind().equals(RequestKind.INSTANCE) in getDependencyArgumentExpression()
213 checkArgument(componentMethod.dependencyRequest().isPresent()); in getComponentMethod()
214 BindingRequest request = bindingRequest(componentMethod.dependencyRequest().get()); in getComponentMethod()
/external/dagger2/java/dagger/internal/codegen/validation/
DDiagnosticMessageGenerator.java176 edge -> dependencyRequestFormatter.appendFormatLine(message, edge.dependencyRequest())); in getMessageInternal()
190 .map(request -> request.dependencyRequest().requestElement()) in getMessageInternal()
232 Element requestElement = object.dependencyRequest().requestElement().get();
305 .filter(edge -> edge.dependencyRequest().requestElement().isPresent()) in requests()
361 entryPoint.dependencyRequest().requestElement().get().getEnclosingElement()); in typeDeclaringEntryPoint()
371 closestEnclosingTypeElement(edge.dependencyRequest().requestElement().get()) in requestEnclosingTypeName()
383 return comparing(edge -> edge.dependencyRequest().requestElement().get(), DECLARATION_ORDER); in requestElementDeclarationOrder()
DComponentValidator.java494 .map(this::dependencyRequest) in distinctKeys()
499 private DependencyRequest dependencyRequest(ExecutableElement method) { in dependencyRequest() method in ComponentValidator.ElementValidator
/external/dagger2/java/dagger/model/
DBindingGraph.java193 .collect(toImmutableSetMultimap(DependencyEdge::dependencyRequest, edge -> edge)); in dependencyEdges()
197 public ImmutableSet<DependencyEdge> dependencyEdges(DependencyRequest dependencyRequest) { in dependencyEdges() argument
199 .filter(edge -> edge.dependencyRequest().equals(dependencyRequest)) in dependencyEdges()
338 DependencyRequest dependencyRequest(); in dependencyRequest() method
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/
DDependencyCycleValidator.java181 .map(DependencyEdge::dependencyRequest) in errorMessage()
203 if (edge.dependencyRequest().key().multibindingContributionIdentifier().isPresent()) { in breaksCycle()
206 if (breaksCycle(edge.dependencyRequest().key().type(), edge.dependencyRequest().kind())) { in breaksCycle()
214 TypeMirror optionalValueType = OptionalType.from(edge.dependencyRequest().key()).valueType(); in breaksCycle()
DProvisionDependencyOnProducerBindingValidator.java80 ? canBeSatisfiedByProductionBinding(edge.dependencyRequest().kind()) in dependencyCanUseProduction()
106 entryPoint.dependencyRequest().key()); in entryPointErrorMessage()
DNullableBindingValidator.java75 .filter(edge -> !edge.dependencyRequest().isNullable()) in nonNullableDependencies()
DMissingBindingValidator.java117 return canBeSatisfiedByProductionBinding(edge.dependencyRequest().kind()); in dependencyCanBeProduction()
/external/dagger2/javatests/dagger/spi/
DFailingPlugin.java78 edge.dependencyRequest() in visitGraph()
/external/dagger2/java/dagger/internal/codegen/kythe/
DDaggerKythePlugin.java90 DependencyRequest dependency = dependencyEdge.dependencyRequest(); in addDependencyEdges()