Home
last modified time | relevance | path

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

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DComponentDescriptor.java312 for (ExecutableElement componentMethod : unimplementedMethods) {
314 MoreTypes.asExecutable(types.asMemberOf(declaredComponentType, componentMethod));
316 getDescriptorForComponentMethod(componentDefinitionType, kind, componentMethod);
362 ExecutableElement componentMethod) {
364 MoreTypes.asDeclared(componentElement.asType()), componentMethod));
371 Optional.of(dependencyRequestFactory.forComponentProvisionMethod(componentMethod,
373 componentMethod);
378 componentMethod,
380 componentMethod);
385 componentMethod);
[all …]
DSubcomponentWriter.java142 MethodWriter componentMethod; in addFactoryMethods() local
145 componentMethod = in addFactoryMethods()
149 componentMethod.body().addSnippet("return new %s();", builderName.get()); in addFactoryMethods()
152 componentMethod = in addFactoryMethods()
155 writeSubcomponentWithoutBuilder(componentMethod, resolvedMethod); in addFactoryMethods()
157 componentMethod.addModifiers(PUBLIC); in addFactoryMethods()
158 componentMethod.annotate(Override.class); in addFactoryMethods()
162 MethodWriter componentMethod, ExecutableType resolvedMethod) { in writeSubcomponentWithoutBuilder() argument
170 componentMethod.addParameter(moduleType, moduleVariable.getSimpleName().toString()); in writeSubcomponentWithoutBuilder()
207 componentMethod.body().addSnippet("return new %s(%s);", in writeSubcomponentWithoutBuilder()
DProductionBinding.java166 ProductionBinding forComponentMethod(ExecutableElement componentMethod) { in forComponentMethod() argument
167 checkNotNull(componentMethod); in forComponentMethod()
168 checkArgument(componentMethod.getKind().equals(METHOD)); in forComponentMethod()
169 checkArgument(componentMethod.getParameters().isEmpty()); in forComponentMethod()
170 checkArgument(MoreTypes.isTypeOf(ListenableFuture.class, componentMethod.getReturnType())); in forComponentMethod()
172 keyFactory.forProductionComponentMethod(componentMethod), in forComponentMethod()
173 componentMethod, in forComponentMethod()
182 ImmutableList.copyOf(componentMethod.getThrownTypes()), in forComponentMethod()
DKey.java187 Key forComponentMethod(ExecutableElement componentMethod) {
188 checkNotNull(componentMethod);
189 checkArgument(componentMethod.getKind().equals(METHOD));
190 TypeMirror returnType = normalize(types, componentMethod.getReturnType());
191 return forMethod(componentMethod, returnType);
194 Key forProductionComponentMethod(ExecutableElement componentMethod) {
195 checkNotNull(componentMethod);
196 checkArgument(componentMethod.getKind().equals(METHOD));
197 TypeMirror returnType = normalize(types, componentMethod.getReturnType());
202 return forMethod(componentMethod, keyType);
DProvisionBinding.java229 ProvisionBinding forComponentMethod(ExecutableElement componentMethod) { in forComponentMethod() argument
230 checkNotNull(componentMethod); in forComponentMethod()
231 checkArgument(componentMethod.getKind().equals(METHOD)); in forComponentMethod()
232 checkArgument(componentMethod.getParameters().isEmpty()); in forComponentMethod()
233 Scope scope = Scope.scopeOf(componentMethod); in forComponentMethod()
235 keyFactory.forComponentMethod(componentMethod), in forComponentMethod()
236 componentMethod, in forComponentMethod()
240 ConfigurationAnnotations.getNullableType(componentMethod), in forComponentMethod()
DBindingGraph.java232 for (ComponentMethodDescriptor componentMethod : componentDescriptor.componentMethods()) {
233 Optional<DependencyRequest> componentMethodRequest = componentMethod.dependencyRequest();
DAbstractComponentWriter.java583 for (ComponentMethodDescriptor componentMethod : in implementInterfaceMethods()
585 if (componentMethod.dependencyRequest().isPresent()) { in implementInterfaceMethods()
586 DependencyRequest interfaceRequest = componentMethod.dependencyRequest().get(); in implementInterfaceMethods()
DBindingGraphValidator.java164 for (ComponentMethodDescriptor componentMethod : in validateSubgraph()
166 Optional<DependencyRequest> entryPoint = componentMethod.dependencyRequest(); in validateSubgraph()