Home
last modified time | relevance | path

Searched refs:componentDefinitionType (Results 1 – 11 of 11) sorted by relevance

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DComponentDescriptor.java132 abstract TypeElement componentDefinitionType(); in componentDefinitionType() method in ComponentDescriptor
258 ComponentDescriptor forComponent(TypeElement componentDefinitionType) {
259 Optional<Kind> kind = Kind.forAnnotatedElement(componentDefinitionType);
263 componentDefinitionType);
264 return create(componentDefinitionType, kind.get());
267 private ComponentDescriptor create(TypeElement componentDefinitionType, Kind kind) {
268 DeclaredType declaredComponentType = MoreTypes.asDeclared(componentDefinitionType.asType());
270 getAnnotationMirror(componentDefinitionType, kind.annotationType())
271 .or(getAnnotationMirror(componentDefinitionType, Subcomponent.class))
274 isComponent(componentDefinitionType)
[all …]
DComponentHierarchyValidator.java40 constant(componentDescriptor.componentDefinitionType()))); in validate()
47 ValidationReport.about(componentDescriptor.componentDefinitionType()); in validateSubcomponentMethods()
110 constant(subcomponentDescriptor.componentDefinitionType()))) in validateSubcomponentMethods()
DComponentGenerator.java62 ClassName.fromTypeElement(input.componentDescriptor().componentDefinitionType()); in nameGeneratedType()
69 return ImmutableSet.of(input.componentDescriptor().componentDefinitionType()); in getOriginatingElements()
74 return Optional.of(input.componentDescriptor().componentDefinitionType()); in getElementForErrorReporting()
DProvisionBinding.java213 ProvisionBinding forComponent(TypeElement componentDefinitionType) { in forComponent() argument
214 checkNotNull(componentDefinitionType); in forComponent()
216 keyFactory.forComponent(componentDefinitionType.asType()), in forComponent()
217 componentDefinitionType, in forComponent()
DBindingGraphValidator.java147 ValidationReport.about(subject.componentDescriptor().componentDefinitionType()); in Validation()
181 entry.getKey().methodElement(), entry.getValue().componentDefinitionType()); in validateSubgraph()
219 asDeclared(subject.componentDescriptor().componentDefinitionType().asType()); in subgraphFactoryMethodParameters()
521 TypeElement componentType = descriptor.componentDefinitionType(); in validateComponentHierarchy()
582 descriptor.componentDefinitionType(), in validateDependencyScopes()
589 .append(descriptor.componentDefinitionType().getQualifiedName()) in validateDependencyScopes()
594 descriptor.componentDefinitionType(), in validateDependencyScopes()
599 validateScopeHierarchy(descriptor.componentDefinitionType(), in validateDependencyScopes()
600 descriptor.componentDefinitionType(), in validateDependencyScopes()
609 new StringBuilder(descriptor.componentDefinitionType().getQualifiedName()) in validateDependencyScopes()
[all …]
DBindingGraph.java184 TypeElement componentDefinitionType = componentDescriptor.componentDefinitionType();
185 explicitBindingsBuilder.add(provisionBindingFactory.forComponent(componentDefinitionType));
189 getAnnotationMirror(componentDefinitionType, Component.class)
190 .or(getAnnotationMirror(componentDefinitionType, ProductionComponent.class));
217 componentDescriptor.componentDefinitionType()));
DConfigurationAnnotations.java63 static boolean isComponent(TypeElement componentDefinitionType) { in isComponent() argument
64 return MoreElements.isAnnotationPresent(componentDefinitionType, Component.class) in isComponent()
65 || MoreElements.isAnnotationPresent(componentDefinitionType, ProductionComponent.class); in isComponent()
DMissingBindingSuggestions.java45 + graph.componentDescriptor().componentDefinitionType().getQualifiedName()); in forKey()
DSubcomponentWriter.java71 return subgraph.componentDescriptor().componentDefinitionType().getSimpleName() + "Impl"; in subcomponentSimpleName()
104 MoreTypes.asDeclared(parent.componentDefinitionType().asType()), in resolvedSubcomponentFactoryMethod()
DComponentWriter.java58 componentWriter.setSupertype(componentDefinitionType()); in createComponentClass()
DAbstractComponentWriter.java170 protected final TypeElement componentDefinitionType() { in componentDefinitionType() method in AbstractComponentWriter
171 return graph.componentDescriptor().componentDefinitionType(); in componentDefinitionType()
175 return ClassName.fromTypeElement(componentDefinitionType()); in componentDefinitionTypeName()
590 MoreTypes.asDeclared(componentDefinitionType().asType()), requestElement)); in implementInterfaceMethods()