/external/dagger2/java/dagger/internal/codegen/writing/ |
D | ComponentMethodRequestRepresentation.java | 38 private final ComponentMethodDescriptor componentMethod; field in ComponentMethodRequestRepresentation 44 @Assisted ComponentMethodDescriptor componentMethod, in ComponentMethodRequestRepresentation() argument 49 this.componentMethod = checkNotNull(componentMethod); in ComponentMethodRequestRepresentation() 56 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getComponentMethodImplementation() argument 64 return componentMethod.equals(this.componentMethod) && component.equals(componentImplementation) in getComponentMethodImplementation() 68 .getDependencyExpressionForComponentMethod(componentMethod, componentImplementation) in getComponentMethodImplementation() 70 : super.getComponentMethodImplementation(componentMethod, component); in getComponentMethodImplementation() 75 return CodeBlock.of("$N()", getSimpleName(componentMethod.methodElement())); in methodCall() 80 return componentMethod.resolvedReturnType(types); in returnType() 87 ComponentMethodDescriptor componentMethod); in create() argument
|
D | ProducerEntryPointView.java | 64 ComponentMethodDescriptor componentMethod, in getProducerEntryPointField() argument 67 && (componentMethod.dependencyRequest().get().kind().equals(RequestKind.FUTURE) in getProducerEntryPointField() 68 || componentMethod.dependencyRequest().get().kind().equals(RequestKind.PRODUCER))) { in getProducerEntryPointField() 69 MemberSelect field = createField(producerExpression, componentMethod); in getProducerEntryPointField() 71 Expression.create(fieldType(componentMethod), field.getExpressionFor(requestingClass))); in getProducerEntryPointField() 83 RequestRepresentation producerExpression, ComponentMethodDescriptor componentMethod) { in createField() argument 87 String methodName = getSimpleName(componentMethod.methodElement()); in createField() 90 TypeName.get(fieldType(componentMethod)), in createField() 117 private TypeMirror fieldType(ComponentMethodDescriptor componentMethod) { in fieldType() argument 119 componentMethod.dependencyRequest().get().key().type().java(), TypeNames.PRODUCER); in fieldType()
|
D | RequestRepresentation.java | 42 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument 52 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getComponentMethodImplementation() argument 56 getDependencyExpressionForComponentMethod(componentMethod, component).codeBlock()); in getComponentMethodImplementation()
|
D | ComponentRequestRepresentations.java | 120 ComponentMethodDescriptor componentMethod, in getDependencyExpressionForComponentMethod() argument 123 .getDependencyExpressionForComponentMethod(componentMethod, componentImplementation); in getDependencyExpressionForComponentMethod() 191 public MethodSpec getComponentMethod(ComponentMethodDescriptor componentMethod) { in getComponentMethod() argument 192 checkArgument(componentMethod.dependencyRequest().isPresent()); in getComponentMethod() 193 BindingRequest request = bindingRequest(componentMethod.dependencyRequest().get()); in getComponentMethod() 195 componentMethod.methodElement(), graph.componentTypeElement().getType()) in getComponentMethod() 198 .getComponentMethodImplementation(componentMethod, componentImplementation)) in getComponentMethod()
|
D | MethodRequestRepresentation.java | 49 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument 51 .getProducerEntryPointField(this, componentMethod, component.name()) in getDependencyExpressionForComponentMethod() 53 () -> super.getDependencyExpressionForComponentMethod(componentMethod, component)); in getDependencyExpressionForComponentMethod()
|
D | ProducerNodeInstanceRequestRepresentation.java | 74 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument 76 .getProducerEntryPointField(this, componentMethod, component.name()) in getDependencyExpressionForComponentMethod() 78 () -> super.getDependencyExpressionForComponentMethod(componentMethod, component)); in getDependencyExpressionForComponentMethod()
|
D | MembersInjectionRequestRepresentation.java | 59 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getComponentMethodImplementation() argument 60 XMethodElement methodElement = componentMethod.methodElement(); in getComponentMethodImplementation()
|
D | DerivedFromFrameworkInstanceRequestRepresentation.java | 75 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument 80 componentMethod, component), in getDependencyExpressionForComponentMethod()
|
D | DirectInstanceBindingRepresentation.java | 129 ComponentMethodDescriptor componentMethod = matchingComponentMethod.get(); in wrapInMethod() local 130 return componentMethodRequestRepresentationFactory.create(bindingExpression, componentMethod); in wrapInMethod()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | ComponentDescriptorFactory.java | 154 for (XMethodElement componentMethod : getAllUnimplementedMethods(typeElement)) { in create() 156 getDescriptorForComponentMethod(componentAnnotation, typeElement, componentMethod); in create() 206 XMethodElement componentMethod) { in getDescriptorForComponentMethod() argument 208 ComponentMethodDescriptor.builder(componentMethod); in getDescriptorForComponentMethod() 210 XMethodType resolvedComponentMethod = componentMethod.asMemberOf(componentElement.getType()); in getDescriptorForComponentMethod() 212 if (isDeclared(returnType) && !injectionAnnotations.getQualifier(componentMethod).isPresent()) { in getDescriptorForComponentMethod() 225 switch (componentMethod.getParameters().size()) { in getDescriptorForComponentMethod() 227 checkArgument(!isVoid(returnType), "component method cannot be void: %s", componentMethod); in getDescriptorForComponentMethod() 231 componentMethod, resolvedComponentMethod) in getDescriptorForComponentMethod() 233 componentMethod, resolvedComponentMethod)); in getDescriptorForComponentMethod() [all …]
|
D | MethodSignature.java | 41 ComponentMethodDescriptor componentMethod, XType componentType) { in forComponentMethod() argument 42 XMethodType methodType = componentMethod.methodElement().asMemberOf(componentType); in forComponentMethod() 44 getSimpleName(componentMethod.methodElement()), in forComponentMethod()
|
D | KeyFactory.java | 129 Key forComponentMethod(XMethodElement componentMethod) { in forComponentMethod() argument 130 return forMethod(componentMethod, componentMethod.getReturnType()); in forComponentMethod() 133 Key forProductionComponentMethod(XMethodElement componentMethod) { in forProductionComponentMethod() argument 134 XType returnType = componentMethod.getReturnType(); in forProductionComponentMethod() 137 return forMethod(componentMethod, keyType); in forProductionComponentMethod()
|
/external/turbine/java/com/google/turbine/binder/ |
D | TypeBinder.java | 517 MethodSymbol componentMethod = syntheticMethods.create(owner, c.name()); in syntheticRecordMethods() local 520 componentMethod, in syntheticRecordMethods()
|