/external/dagger2/java/dagger/internal/codegen/writing/ |
D | ComponentMethodBindingExpression.java | 37 private final ComponentMethodDescriptor componentMethod; field in ComponentMethodBindingExpression 45 ComponentMethodDescriptor componentMethod, in ComponentMethodBindingExpression() argument 55 this.componentMethod = checkNotNull(componentMethod); in ComponentMethodBindingExpression() 60 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getComponentMethodImplementation() argument 70 return componentMethod.equals(this.componentMethod) && component.equals(componentImplementation) in getComponentMethodImplementation() 71 ? methodBodyForComponentMethod(componentMethod) in getComponentMethodImplementation() 72 : super.getComponentMethodImplementation(componentMethod, component); in getComponentMethodImplementation() 79 TypeMirror methodReturnType = componentMethod.methodElement().getReturnType(); in getDependencyExpression() 90 return componentMethod.methodElement().getSimpleName().toString(); in methodName()
|
D | ProducerEntryPointView.java | 58 ComponentMethodDescriptor componentMethod, in getProducerEntryPointField() argument 61 && (componentMethod.dependencyRequest().get().kind().equals(RequestKind.FUTURE) in getProducerEntryPointField() 62 || componentMethod.dependencyRequest().get().kind().equals(RequestKind.PRODUCER))) { in getProducerEntryPointField() 65 fieldType(componentMethod), in getProducerEntryPointField() 67 createField(producerExpression, componentMethod, component))); in getProducerEntryPointField() 80 ComponentMethodDescriptor componentMethod, in createField() argument 85 String methodName = componentMethod.methodElement().getSimpleName().toString(); in createField() 88 TypeName.get(fieldType(componentMethod)), in createField() 107 private TypeMirror fieldType(ComponentMethodDescriptor componentMethod) { in fieldType() argument 108 return types.wrapType(componentMethod.dependencyRequest().get().key().type(), Producer.class); in fieldType()
|
D | BindingExpression.java | 42 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument 57 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getComponentMethodImplementation() argument 61 getDependencyExpressionForComponentMethod(componentMethod, component).codeBlock()); in getComponentMethodImplementation()
|
D | ProducerNodeInstanceBindingExpression.java | 63 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument 65 .getProducerEntryPointField(this, componentMethod, component) in getDependencyExpressionForComponentMethod() 67 () -> super.getDependencyExpressionForComponentMethod(componentMethod, component)); in getDependencyExpressionForComponentMethod()
|
D | MethodBindingExpression.java | 102 Expression getDependencyExpressionForComponentMethod(ComponentMethodDescriptor componentMethod, in getDependencyExpressionForComponentMethod() argument 105 .getProducerEntryPointField(this, componentMethod, component) in getDependencyExpressionForComponentMethod() 107 () -> super.getDependencyExpressionForComponentMethod(componentMethod, component)); in getDependencyExpressionForComponentMethod() 125 ComponentMethodDescriptor componentMethod) { in methodBodyForComponentMethod() argument 128 componentMethod, componentImplementation) in methodBodyForComponentMethod()
|
D | ComponentBindingExpressions.java | 143 ComponentMethodDescriptor componentMethod, in getDependencyExpressionForComponentMethod() argument 146 .getDependencyExpressionForComponentMethod(componentMethod, componentImplementation); in getDependencyExpressionForComponentMethod() 212 public MethodSpec getComponentMethod(ComponentMethodDescriptor componentMethod) { in getComponentMethod() argument 213 checkArgument(componentMethod.dependencyRequest().isPresent()); in getComponentMethod() 214 BindingRequest request = bindingRequest(componentMethod.dependencyRequest().get()); in getComponentMethod() 217 componentMethod.methodElement(), in getComponentMethod() 225 .getComponentMethodImplementation(componentMethod, componentImplementation); in getComponentMethod() 670 ComponentMethodDescriptor componentMethod = matchingComponentMethod.get(); in wrapInMethod() local 677 componentMethod, in wrapInMethod()
|
D | MembersInjectionBindingExpression.java | 54 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getComponentMethodImplementation() argument 55 ExecutableElement methodElement = componentMethod.methodElement(); in getComponentMethodImplementation()
|
D | DerivedFromFrameworkInstanceBindingExpression.java | 63 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument 66 frameworkRequest, componentMethod, component); in getDependencyExpressionForComponentMethod()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | ComponentDescriptorFactory.java | 163 for (ExecutableElement componentMethod : unimplementedMethods) { in create() 165 getDescriptorForComponentMethod(typeElement, componentAnnotation, componentMethod); in create() 218 ExecutableElement componentMethod) { in getDescriptorForComponentMethod() argument 220 ComponentMethodDescriptor.builder(componentMethod); in getDescriptorForComponentMethod() 224 types.asMemberOf(MoreTypes.asDeclared(componentElement.asType()), componentMethod)); in getDescriptorForComponentMethod() 227 && !injectionAnnotations.getQualifier(componentMethod).isPresent()) { in getDescriptorForComponentMethod() 240 switch (componentMethod.getParameters().size()) { in getDescriptorForComponentMethod() 245 componentMethod); in getDescriptorForComponentMethod() 249 componentMethod, resolvedComponentMethod) in getDescriptorForComponentMethod() 251 componentMethod, resolvedComponentMethod)); in getDescriptorForComponentMethod() [all …]
|
D | KeyFactory.java | 105 Key forComponentMethod(ExecutableElement componentMethod) { in forComponentMethod() argument 106 checkArgument(componentMethod.getKind().equals(METHOD)); in forComponentMethod() 107 return forMethod(componentMethod, componentMethod.getReturnType()); in forComponentMethod() 110 Key forProductionComponentMethod(ExecutableElement componentMethod) { in forProductionComponentMethod() argument 111 checkArgument(componentMethod.getKind().equals(METHOD)); in forProductionComponentMethod() 112 TypeMirror returnType = componentMethod.getReturnType(); in forProductionComponentMethod() 117 return forMethod(componentMethod, keyType); in forProductionComponentMethod()
|
D | ComponentDescriptor.java | 250 ComponentMethodDescriptor componentMethod, BindingRequest request) { in doesComponentMethodMatch() argument 251 return componentMethod in doesComponentMethodMatch()
|
/external/dagger2/java/dagger/internal/codegen/componentgenerator/ |
D | MethodSignature.java | 43 ComponentMethodDescriptor componentMethod, DeclaredType componentType, DaggerTypes types) { in forComponentMethod() argument 45 MoreTypes.asExecutable(types.asMemberOf(componentType, componentMethod.methodElement())); in forComponentMethod() 47 componentMethod.methodElement().getSimpleName().toString(), in forComponentMethod()
|