Home
last modified time | relevance | path

Searched refs:componentMethod (Results 1 – 12 of 12) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/writing/
DComponentMethodBindingExpression.java37 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()
DProducerEntryPointView.java58 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()
DBindingExpression.java42 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument
57 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getComponentMethodImplementation() argument
61 getDependencyExpressionForComponentMethod(componentMethod, component).codeBlock()); in getComponentMethodImplementation()
DProducerNodeInstanceBindingExpression.java63 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument
65 .getProducerEntryPointField(this, componentMethod, component) in getDependencyExpressionForComponentMethod()
67 () -> super.getDependencyExpressionForComponentMethod(componentMethod, component)); in getDependencyExpressionForComponentMethod()
DMethodBindingExpression.java102 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()
DComponentBindingExpressions.java143 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()
DMembersInjectionBindingExpression.java54 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getComponentMethodImplementation() argument
55 ExecutableElement methodElement = componentMethod.methodElement(); in getComponentMethodImplementation()
DDerivedFromFrameworkInstanceBindingExpression.java63 ComponentMethodDescriptor componentMethod, ComponentImplementation component) { in getDependencyExpressionForComponentMethod() argument
66 frameworkRequest, componentMethod, component); in getDependencyExpressionForComponentMethod()
/external/dagger2/java/dagger/internal/codegen/binding/
DComponentDescriptorFactory.java163 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 …]
DKeyFactory.java105 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()
DComponentDescriptor.java250 ComponentMethodDescriptor componentMethod, BindingRequest request) { in doesComponentMethodMatch() argument
251 return componentMethod in doesComponentMethodMatch()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DMethodSignature.java43 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()