/external/dagger2/java/dagger/internal/codegen/writing/ |
D | ComponentNames.java | 79 XClassName get(ComponentPath componentPath) { in get() argument 80 return compilerOptions.generatedClassExtendsComponent() && componentPath.atRoot() in get() 82 : topLevelClassName.nestedClass(namesByPath.get(componentPath) + "Impl"); in get() 89 XClassName getSubcomponentCreatorName(ComponentPath componentPath, Key creatorKey) { in getSubcomponentCreatorName() argument 95 .filter(path -> path.parent().equals(componentPath)) in getSubcomponentCreatorName() 104 XClassName getCreatorName(ComponentPath componentPath) { in getCreatorName() argument 105 checkArgument(creatorNamesByPath.containsKey(componentPath)); in getCreatorName() 106 return topLevelClassName.nestedClass(creatorNamesByPath.get(componentPath)); in getCreatorName() 115 (componentPath, componentDescriptor) -> { in creatorNamesByPath() 116 if (componentPath.atRoot()) { in creatorNamesByPath() [all …]
|
D | ComponentImplementation.java | 229 .filter(bindingNode -> bindingNode.componentPath().equals(graph.componentPath())) in bindingPartitions() 304 new ShardImplementation(toJavaPoet(componentNames.get(graph.componentPath()))); in ComponentImplementation() 385 componentImpl.graph.componentPath().currentComponent().className(); in createComponentFieldsByImplementation() 439 return toJavaPoet(componentNames.getCreatorName(graph.componentPath())); in getCreatorName() 595 componentNames.getSubcomponentCreatorName(graph.componentPath(), creatorKey)); in getSubcomponentCreatorSimpleName() 769 && graph.componentPath().atRoot()) { in generate()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | BindingGraph.java | 88 toImmutableMap(ComponentNode::componentPath, componentNode -> componentNode)); in create() 93 .filter(componentNode -> !componentNode.componentPath().atRoot()) in create() 97 componentNodes.get(componentNode.componentPath().parent()), componentNode)); in create() 117 public Optional<ComponentNode> componentNode(ComponentPath componentPath) { in componentNode() argument 118 return componentNodes.containsKey(componentPath) in componentNode() 119 ? Optional.of(componentNodes.get(componentPath)) in componentNode() 140 return Multimaps.index(transform(bindings(), BindingNode.class::cast), Node::componentPath); in bindingsByComponent() 224 topLevelBindingGraph.bindingsByComponent().get(componentNode.componentPath()) in create() 278 public final ComponentPath componentPath() { in componentPath() method in BindingGraph 279 return componentNode().componentPath(); in componentPath() [all …]
|
D | LegacyBindingGraphConverter.java | 126 && binding.componentPath().equals(graph.componentPath())) { in visitComponent() 155 private ComponentPath componentPath() { in componentPath() method in LegacyBindingGraphConverter.Converter 156 return bindingGraphPath.getLast().componentPath(); in componentPath() 171 "%s is not in the current path: %s", ancestor.getQualifiedName(), componentPath())); in graphForAncestor() 219 return graphForAncestor(source.componentPath().currentComponent().xprocessing()) in resolvedDependencies() 227 ComponentPath.create(ImmutableList.of(componentPath().rootComponent())), in missingBindingNode() 237 componentPath().childPath(DaggerTypeElement.from(subcomponent.typeElement())), in subcomponentNode()
|
D | ComponentNodeImpl.java | 32 ComponentPath componentPath, ComponentDescriptor componentDescriptor) { in create() argument 33 return new AutoValue_ComponentNodeImpl(componentPath, componentDescriptor); in create() 62 return componentPath().toString(); in toString()
|
D | ResolvedBindings.java | 82 ImmutableSet<BindingNode> bindingNodesOwnedBy(ComponentPath componentPath) { in bindingNodesOwnedBy() argument 84 .filter(bindingNode -> bindingNode.componentPath().equals(componentPath)) in bindingNodesOwnedBy()
|
D | LegacyBindingGraphFactory.java | 182 ComponentNodeImpl.create(resolver.componentPath, resolver.componentDescriptor); in LegacyBindingGraph() 191 public ComponentPath componentPath() { in componentPath() method in LegacyBindingGraphFactory.LegacyBindingGraph 192 return resolver.componentPath; in componentPath() 291 ImmutableSet<BindingNode> bindingNodesOwnedBy(ComponentPath componentPath) { in bindingNodesOwnedBy() argument 293 .filter(bindingNode -> bindingNode.componentPath().equals(componentPath)) in bindingNodesOwnedBy() 306 final ComponentPath componentPath; field in LegacyBindingGraphFactory.Resolver 321 componentPath = in Resolver() 323 ? parentResolver.get().componentPath.childPath(componentType) in Resolver() 436 componentPath, in lookUpBindings() 477 bindingNodeFactory.forMembersInjectionBinding(componentPath, binding.get())) in lookUpMembersInjectionBinding() [all …]
|
D | BindingGraphFactory.java | 132 final ComponentPath componentPath; field in BindingGraphFactory.Resolver 155 componentPath = in Resolver() 157 ? parentResolver.get().componentPath.childPath(componentType) in Resolver() 159 this.componentNode = ComponentNodeImpl.create(componentPath, componentDescriptor); in Resolver() 322 componentPath, in lookUpBindings() 363 bindingNodeFactory.forMembersInjectionBinding(componentPath, binding.get())) in lookUpMembersInjectionBinding() 588 for (BindingNode binding : resolvedBindings.bindingNodesOwnedBy(componentPath)) { in resolveDependencies() 601 resolvedBindings.bindingNodesOwnedBy(componentPath).forEach(this::addNode); in addNodes() 631 .filter(resolver -> resolver.componentPath.equals(binding.componentPath())) in addSubcomponentEdge() 638 owningResolver.componentPath.childPath( in addSubcomponentEdge() [all …]
|
/external/dagger2/java/dagger/model/ |
D | BindingGraph.java | 158 .filter(node -> node.componentPath().equals(component)) in componentNode() 165 .filter(node -> node.componentPath().currentComponent().equals(component)) in componentNodes() 172 .filter(node -> node.componentPath().atRoot()) in rootComponentNode() 375 ComponentPath componentPath(); in componentPath() method 383 ComponentPath componentPath(); in componentPath() method 396 public abstract ComponentPath componentPath(); in componentPath() method in BindingGraph.MissingBinding 411 return String.format("missing binding for %s in %s", key(), componentPath()); in toString() 423 ComponentPath componentPath(); in componentPath() method
|
D | Binding.java | 35 ComponentPath componentPath(); in componentPath() method
|
/external/dagger2/java/dagger/internal/codegen/model/ |
D | BindingGraph.java | 157 .filter(node -> node.componentPath().equals(component)) in componentNode() 164 .filter(node -> node.componentPath().currentComponent().equals(component)) in componentNodes() 171 .filter(node -> node.componentPath().atRoot()) in rootComponentNode() 374 ComponentPath componentPath(); in componentPath() method 382 ComponentPath componentPath(); in componentPath() method 395 public abstract ComponentPath componentPath(); in componentPath() method in BindingGraph.MissingBinding 410 return String.format("missing binding for %s in %s", key(), componentPath()); in toString() 422 ComponentPath componentPath(); in componentPath() method
|
D | Binding.java | 33 ComponentPath componentPath(); in componentPath() method
|
/external/dagger2/java/dagger/spi/model/ |
D | BindingGraph.java | 159 .filter(node -> node.componentPath().equals(component)) in componentNode() 166 .filter(node -> node.componentPath().currentComponent().equals(component)) in componentNodes() 173 .filter(node -> node.componentPath().atRoot()) in rootComponentNode() 376 ComponentPath componentPath(); in componentPath() method 384 ComponentPath componentPath(); in componentPath() method 397 public abstract ComponentPath componentPath(); in componentPath() method in BindingGraph.MissingBinding 412 return String.format("missing binding for %s in %s", key(), componentPath()); in toString() 424 ComponentPath componentPath(); in componentPath() method
|
D | Binding.java | 33 ComponentPath componentPath(); in componentPath() method
|
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/ |
D | SubcomponentFactoryMethodValidator.java | 86 .filter(binding -> binding.componentPath().equals(child.componentPath())) in findMissingModules() 103 XType parentType = parent.componentPath().currentComponent().xprocessing().getType(); in subgraphFactoryMethodParameters() 123 componentNode.componentPath().atRoot() in uncachedInheritedModules() 126 .componentNode(componentNode.componentPath().parent()) in uncachedInheritedModules() 145 .componentPath() in reportMissingModuleParameters()
|
D | DuplicateBindingsValidator.java | 71 comparing(binding -> binding.componentPath().components().size()); 146 Multimaps.index(duplicateBindings, Binding::componentPath); in mutuallyVisibleSubsets() 152 (componentPath, bindings) -> { in mutuallyVisibleSubsets() 153 mutuallyVisibleBindings.putAll(componentPath, bindings); in mutuallyVisibleSubsets() 154 for (ComponentPath ancestor = componentPath; !ancestor.atRoot(); ) { in mutuallyVisibleSubsets() 157 mutuallyVisibleBindings.putAll(componentPath, bindingsInAncestor); in mutuallyVisibleSubsets() 223 binding.componentPath()); in formatWithComponentPath() 260 message.append(String.format("\n%sin component: [%s]", INDENT, oneBinding.componentPath())); in reportDuplicateBindings()
|
D | IncompatiblyScopedBindingsValidator.java | 94 return bindingGraph.componentNode(binding.componentPath()).get(); in owningComponent() 105 componentNode.componentPath().currentComponent().className().canonicalName()); in report()
|
D | MissingBindingValidator.java | 106 graph.componentNode(missingBinding.componentPath()).get(), in reportMissingBinding() 193 && !((ComponentNodeImpl) graph.componentNode(alternativeBinding.componentPath()).get()) in alternativeBindingsMessage() 234 binding.componentPath().currentComponent().xprocessing().getQualifiedName(), in asString()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | DiagnosticMessageGenerator.java | 218 if (!node.componentPath().equals(graph.rootComponentNode().componentPath())) { in appendComponentPathUnlessAtRoot() 219 message.append(String.format(" [%s]", node.componentPath())); in appendComponentPathUnlessAtRoot() 232 ComponentPath componentPath = source(object).componentPath(); 233 if (!componentPath.atRoot() 236 .equals(componentPath.rootComponent().xprocessing())) { 237 builder.append(String.format(" [%s]", componentPath)); 318 return comparingInt(entryPoint -> source(entryPoint).componentPath().components().size()); in rootComponentFirst() 360 return source(entryPoint).componentPath().currentComponent().xprocessing(); in componentContainingEntryPoint()
|
D | ModelBindingGraphConverter.java | 206 toModel(componentNode.componentPath()), in create() 231 toModel(binding.componentPath()), in create() 258 toModel(missingBinding.componentPath()), toModel(missingBinding.key()), missingBinding); in create() 335 .collect(toImmutableMap(ComponentNode::componentPath, node -> node)); in create() 344 public Optional<ComponentNode> componentNode(ComponentPath componentPath) { in componentNode() argument 345 return componentNodesByPath.containsKey(componentPath) in componentNode() 346 ? Optional.of(componentNodesByPath.get(componentPath)) in componentNode()
|
D | SpiModelBindingGraphConverter.java | 271 toSpiModel(componentNode.componentPath()), in create() 296 toSpiModel(binding.componentPath()), in create() 324 toSpiModel(missingBinding.componentPath()), in create() 410 .collect(toImmutableMap(ComponentNode::componentPath, node -> node)); in create() 419 public Optional<ComponentNode> componentNode(ComponentPath componentPath) { in componentNode() argument 420 return componentNodesByPath.containsKey(componentPath) in componentNode() 421 ? Optional.of(componentNodesByPath.get(componentPath)) in componentNode()
|
D | BindingGraphValidator.java | 82 graph.rootComponentNode().componentPath().currentComponent().xprocessing())) { in visitExternalPlugins()
|
/external/dagger2/java/dagger/example/spi/ |
D | BindingGraphVisualizer.java | 98 bindingGraph.rootComponentNode().componentPath().currentComponent(); in visitGraph() 228 .collect(groupingBy(Node::componentPath)) in graph() 268 dotEdge.addAttribute("lhead", clusterName(incidentNodes.target().componentPath())); in dotEdge() 269 dotEdge.addAttribute("ltail", clusterName(incidentNodes.source().componentPath())); in dotEdge() 273 dotEdge.addAttribute("lhead", clusterName(incidentNodes.target().componentPath())); in dotEdge()
|
/external/dagger2/javatests/dagger/functional/spi/ |
D | TestPlugin.java | 49 String.format("component[%s]", i++), node.componentPath().toString()); in visitGraph() 57 ClassName.get(bindingGraph.rootComponentNode().componentPath().currentComponent()); in write()
|
/external/dagger2/java/dagger/hilt/android/plugin/main/src/test/data/spi-plugin/src/main/java/spi/ |
D | TestPlugin.java | 36 "Found component: " + componentNode.componentPath() in visitGraph()
|