/external/dagger2/java/dagger/internal/codegen/componentgenerator/ |
D | ComponentHjarGenerator.java | 104 public Optional<TypeSpec.Builder> write(ComponentDescriptor componentDescriptor) { in write() argument 105 ClassName generatedTypeName = nameGeneratedType(componentDescriptor); in write() 110 if (componentDescriptor.typeElement().getModifiers().contains(PUBLIC)) { in write() 114 TypeElement componentElement = componentDescriptor.typeElement(); in write() 120 if (componentDescriptor.creatorDescriptor().isPresent()) { in write() 121 ComponentCreatorDescriptor creatorDescriptor = componentDescriptor.creatorDescriptor().get(); in write() 130 if (componentDescriptor.typeElement().getModifiers().contains(PUBLIC)) { in write() 138 componentRequirements(componentDescriptor) in write() 141 builder.addMethod(builderBuildMethod(componentDescriptor)); in write() 148 && !hasBindsInstanceMethods(componentDescriptor) in write() [all …]
|
D | ComponentCreatorImplementationFactory.java | 92 if (!componentImplementation.componentDescriptor().hasCreator()) { in create() 97 componentImplementation.componentDescriptor().creatorDescriptor(); in create() 132 final ComponentDescriptor componentDescriptor() { in componentDescriptor() method in ComponentCreatorImplementationFactory.Builder 133 return componentImplementation.componentDescriptor(); in componentDescriptor() 287 .returns(ClassName.get(componentDescriptor().typeElement())) in factoryMethod() 482 .componentDescriptor() 500 return componentDescriptor().dependenciesAndConcreteModules();
|
D | ComponentImplementationBuilder.java | 158 if (graph.componentDescriptor().isProduction()) { in build() 192 Multimaps.index(graph.componentDescriptor().entryPointMethods(), this::getMethodSignature); in addInterfaceMethods() 285 .componentDescriptor() in shouldPropagateCancellationToParent() 409 if (componentImplementation.componentDescriptor().hasCreator()) { in initializationParameters() 462 graph.componentDescriptor().creatorDescriptor(); in createRootComponentFactoryMethod()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | ComponentNodeImpl.java | 32 ComponentPath componentPath, ComponentDescriptor componentDescriptor) { in create() argument 33 return new AutoValue_ComponentNodeImpl(componentPath, componentDescriptor); in create() 38 return componentDescriptor().isSubcomponent(); in isSubcomponent() 43 return componentDescriptor().isRealComponent(); in isRealComponent() 48 return componentDescriptor().entryPointMethods().stream() in entryPoints() 55 return componentDescriptor().scopes(); in scopes() 58 public abstract ComponentDescriptor componentDescriptor(); in componentDescriptor() method in ComponentNodeImpl
|
D | BindingGraphFactory.java | 116 ComponentDescriptor componentDescriptor, boolean createFullBindingGraph) { in create() argument 118 createLegacyBindingGraph(Optional.empty(), componentDescriptor, createFullBindingGraph), in create() 124 ComponentDescriptor componentDescriptor, in createLegacyBindingGraph() argument 130 if (componentDescriptor.isRealComponent()) { in createLegacyBindingGraph() 133 bindingFactory.componentBinding(componentDescriptor.typeElement())); in createLegacyBindingGraph() 137 for (ComponentRequirement dependency : componentDescriptor.dependencies()) { in createLegacyBindingGraph() 151 componentDescriptor, method); in createLegacyBindingGraph() 164 componentDescriptor in createLegacyBindingGraph() 175 componentDescriptor in createLegacyBindingGraph() 179 if (!componentDescriptor in createLegacyBindingGraph() [all …]
|
D | LegacyBindingGraph.java | 33 private final ComponentDescriptor componentDescriptor; field in LegacyBindingGraph 39 ComponentDescriptor componentDescriptor, in LegacyBindingGraph() argument 43 this.componentDescriptor = componentDescriptor; in LegacyBindingGraph() 49 ComponentDescriptor componentDescriptor() { in componentDescriptor() method in LegacyBindingGraph 50 return componentDescriptor; in componentDescriptor() 74 Multimaps.index(graphs, graph -> graph.componentDescriptor().typeElement()).asMap(), in checkForDuplicates()
|
D | BindingGraphConverter.java | 165 .map(LegacyBindingGraph::componentDescriptor) in visitComponent() 170 ComponentNodeImpl.create(componentPath(), graph.componentDescriptor()); in visitComponent() 175 graph.componentDescriptor().entryPointMethods()) { in visitComponent() 201 .componentDescriptor() in visitComponent() 202 .getFactoryMethodForChildComponent(graph.componentDescriptor()) in visitComponent() 274 if (graph.componentDescriptor().typeElement().equals(ancestor)) { in graphForAncestor() 378 graph.componentDescriptor().getChildComponentWithBuilderType(subcomponentBuilderElement); in subcomponentNode()
|
D | BindingGraph.java | 158 ((ComponentNodeImpl) componentNode).componentDescriptor().modules(); in create() 200 public final ComponentDescriptor componentDescriptor() { in componentDescriptor() method in BindingGraph 201 return ((ComponentNodeImpl) componentNode()).componentDescriptor(); in componentDescriptor() 290 componentDescriptor().requirements().stream() in componentRequirements() 305 .map(componentNode -> ((ComponentNodeImpl) componentNode).componentDescriptor()) in componentDescriptors()
|
/external/dagger2/java/dagger/hilt/processor/internal/root/ |
D | RootGenerator.java | 82 for (ComponentDescriptor componentDescriptor : componentTree.getComponentDescriptors()) { in generateComponents() 85 .addAll(toClassNames(metadata.modules(componentDescriptor.component()))) in generateComponents() 87 componentTree.childrenOf(componentDescriptor).stream() in generateComponents() 95 getComponentClassName(componentDescriptor), in generateComponents() 99 metadata.entryPoints(componentDescriptor.component()), in generateComponents() 100 metadata.scopes(componentDescriptor.component()), in generateComponents() 102 componentAnnotation(componentDescriptor), in generateComponents() 103 componentBuilder(componentDescriptor)) in generateComponents() 191 private ClassName componentAnnotation(ComponentDescriptor componentDescriptor) { in componentAnnotation() argument 192 if (!componentDescriptor.isRoot() in componentAnnotation() [all …]
|
D | RootMetadata.java | 149 for (ComponentDescriptor componentDescriptor : componentTree.getComponentDescriptors()) { in validate() 150 ClassName componentName = componentDescriptor.component(); in validate() 193 for (ComponentDescriptor componentDescriptor : componentTree.getComponentDescriptors()) { in getScopesByComponentUncached() 194 for (ClassName scope : componentDescriptor.scopes()) { in getScopesByComponentUncached() 195 builder.put(componentDescriptor.component(), scope); in getScopesByComponentUncached() 196 builder.putAll(componentDescriptor.component(), aliasOfs.getAliasesFor(scope)); in getScopesByComponentUncached()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | ComponentHierarchyValidator.java | 63 ValidationReport<TypeElement> validate(ComponentDescriptor componentDescriptor) { in validate() argument 65 ValidationReport.about(componentDescriptor.typeElement()); in validate() 68 componentDescriptor, in validate() 69 Maps.toMap(componentDescriptor.moduleTypes(), constant(componentDescriptor.typeElement()))); in validate() 70 validateRepeatedScopedDeclarations(report, componentDescriptor, LinkedHashMultimap.create()); in validate() 74 report, componentDescriptor, LinkedHashMultimap.<ComponentDescriptor, Scope>create()); in validate() 76 validateProductionModuleUniqueness(report, componentDescriptor, LinkedHashMultimap.create()); in validate() 82 ComponentDescriptor componentDescriptor, in validateSubcomponentMethods() argument 84 componentDescriptor in validateSubcomponentMethods() 176 ComponentDescriptor componentDescriptor, in validateProductionModuleUniqueness() argument [all …]
|
/external/dagger2/java/dagger/internal/codegen/ |
D | ComponentProcessingStep.java | 107 ComponentDescriptor componentDescriptor = in processRootComponent() local 109 if (!isValid(componentDescriptor)) { in processRootComponent() 112 if (!validateFullBindingGraph(componentDescriptor)) { in processRootComponent() 115 BindingGraph bindingGraph = bindingGraphFactory.create(componentDescriptor, false); in processRootComponent() 146 private boolean validateFullBindingGraph(ComponentDescriptor componentDescriptor) { in validateFullBindingGraph() argument 147 TypeElement component = componentDescriptor.typeElement(); in validateFullBindingGraph() 151 BindingGraph fullBindingGraph = bindingGraphFactory.create(componentDescriptor, true); in validateFullBindingGraph() 155 private boolean isValid(ComponentDescriptor componentDescriptor) { in isValid() argument 157 componentDescriptorValidator.validate(componentDescriptor); in isValid()
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | SubcomponentNames.java | 60 String get(ComponentDescriptor componentDescriptor) { in get() argument 61 return namesByDescriptor.get(componentDescriptor); in get() 75 String getCreatorName(ComponentDescriptor componentDescriptor) { in getCreatorName() argument 76 checkArgument(componentDescriptor.creatorDescriptor().isPresent()); in getCreatorName() 77 ComponentCreatorDescriptor creatorDescriptor = componentDescriptor.creatorDescriptor().get(); in getCreatorName() 78 return get(componentDescriptor) + creatorDescriptor.kind().typeName(); in getCreatorName() 91 subcomponentImplSimpleNames.remove(graph.componentDescriptor()); in namesByDescriptor()
|
D | ComponentImplementation.java | 204 ClassName childName = getSubcomponentName(graph.componentDescriptor()); in childComponentImplementation() 235 public ComponentDescriptor componentDescriptor() { in componentDescriptor() method in ComponentImplementation 236 return graph.componentDescriptor(); in componentDescriptor() 255 checkState(componentDescriptor().hasCreator()); in creatorKind() 256 return componentDescriptor() in creatorKind() 268 ? name.peerClass(subcomponentNames.getCreatorName(componentDescriptor())) in getCreatorName() 275 componentDescriptor().childComponents().contains(childDescriptor), in getSubcomponentName() 278 componentDescriptor().typeElement()); in getSubcomponentName()
|
D | ComponentBindingExpressions.java | 464 topLevelComponentImplementation.componentDescriptor().typeElement()) in providerBindingExpression() 614 topLevelComponentImplementation.componentDescriptor().typeElement()) in useStaticFactoryCreation() 630 topLevelComponentImplementation.componentDescriptor().typeElement()); in canUseDirectInstanceExpression() 650 graph.componentDescriptor().firstMatchingComponentMethod(request); in wrapInMethod() 694 topLevelComponentImplementation.componentDescriptor().typeElement())) { in methodImplementationStrategy()
|
D | ComponentProvisionBindingExpression.java | 63 .componentDescriptor() in componentRequirement()
|
D | DependencyMethodProducerCreationExpression.java | 64 graph.componentDescriptor().getDependencyThatDefinesMethod(binding.bindingElement().get()); in creationExpression()
|
D | ProducerEntryPointView.java | 60 if (component.componentDescriptor().isProduction() in getProducerEntryPointField()
|
D | DependencyMethodProviderCreationExpression.java | 124 return graph.componentDescriptor().getDependencyThatDefinesMethod(provisionMethod()); in dependency()
|
D | ComponentRequirementExpressions.java | 108 if (componentImplementation.componentDescriptor().hasCreator()) { in createField()
|
/external/dagger2/java/dagger/hilt/processor/internal/ |
D | ComponentTree.java | 95 public ImmutableSet<ComponentDescriptor> childrenOf(ComponentDescriptor componentDescriptor) { in childrenOf() argument 96 return ImmutableSet.copyOf(graph.successors(componentDescriptor)); in childrenOf()
|
D | Components.java | 44 .map(defineComponents::componentDescriptor) in getComponentDescriptors()
|
/external/dagger2/java/dagger/hilt/processor/internal/definecomponent/ |
D | DefineComponents.java | 69 public ComponentDescriptor componentDescriptor(Element element) { in componentDescriptor() method in DefineComponents 86 .map(this::componentDescriptor) in uncachedComponentDescriptor()
|
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/ |
D | ComponentDependencies.java | 199 for (ComponentDescriptor componentDescriptor : metadata.componentDescriptors()) { in from() 200 ClassName component = componentDescriptor.component(); in from()
|
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/ |
D | SubcomponentFactoryMethodValidator.java | 121 ((ComponentNodeImpl) component).componentDescriptor().moduleTypes(), in ownedModules()
|