Home
last modified time | relevance | path

Searched refs:ComponentDescriptor (Results 1 – 25 of 36) sorted by relevance

12

/external/dagger2/java/dagger/hilt/processor/internal/
DComponentTree.java36 private final ImmutableGraph<ComponentDescriptor> graph;
37 private final ComponentDescriptor root;
40 public static ComponentTree from(Set<ComponentDescriptor> descriptors) { in from()
41 MutableGraph<ComponentDescriptor> graph = in from()
53 private ComponentTree(ImmutableGraph<ComponentDescriptor> graph) { in ComponentTree()
61 Map<ClassName, ComponentDescriptor> descriptors = new HashMap<>(); in ComponentTree()
62 for (ComponentDescriptor descriptor : graph.nodes()) { in ComponentTree()
64 ComponentDescriptor prevDescriptor = descriptors.get(descriptor.component()); in ComponentTree()
78 ImmutableList<ComponentDescriptor> roots = in ComponentTree()
86 roots.stream().map(ComponentDescriptor::component).collect(toImmutableList())); in ComponentTree()
[all …]
DComponentDescriptor.java29 public abstract class ComponentDescriptor { class
45 public abstract Optional<ComponentDescriptor> parent(); in parent()
62 if (!(obj instanceof ComponentDescriptor)) { in equals()
65 ComponentDescriptor that = (ComponentDescriptor) obj; in equals()
90 Builder parent(ComponentDescriptor parent); in parent()
93 ComponentDescriptor build(); in build()
/external/dagger2/java/dagger/internal/codegen/writing/
DSubcomponentNames.java34 import dagger.internal.codegen.binding.ComponentDescriptor;
51 private final ImmutableMap<ComponentDescriptor, String> namesByDescriptor;
52 private final ImmutableMap<Key, ComponentDescriptor> descriptorsByCreatorKey;
60 String get(ComponentDescriptor componentDescriptor) { in get()
75 String getCreatorName(ComponentDescriptor componentDescriptor) { in getCreatorName()
81 private static ImmutableMap<ComponentDescriptor, String> namesByDescriptor(BindingGraph graph) { in namesByDescriptor()
82 ImmutableListMultimap<String, ComponentDescriptor> componentDescriptorsBySimpleName = in namesByDescriptor()
84 Map<ComponentDescriptor, String> subcomponentImplSimpleNames = new LinkedHashMap<>(); in namesByDescriptor()
95 private static ImmutableMap<Key, ComponentDescriptor> descriptorsByCreatorKey( in descriptorsByCreatorKey()
96 KeyFactory keyFactory, ImmutableSet<ComponentDescriptor> subcomponents) { in descriptorsByCreatorKey()
[all …]
DBindingExpression.java21 import dagger.internal.codegen.binding.ComponentDescriptor.ComponentMethodDescriptor;
DComponentImplementation.java47 import dagger.internal.codegen.binding.ComponentDescriptor;
235 public ComponentDescriptor componentDescriptor() { in componentDescriptor()
273 private ClassName getSubcomponentName(ComponentDescriptor childDescriptor) { in getSubcomponentName()
DProducerNodeInstanceBindingExpression.java22 import dagger.internal.codegen.binding.ComponentDescriptor.ComponentMethodDescriptor;
DMembersInjectionBindingExpression.java25 import dagger.internal.codegen.binding.ComponentDescriptor.ComponentMethodDescriptor;
/external/dagger2/java/dagger/internal/codegen/validation/
DComponentHierarchyValidator.java40 import dagger.internal.codegen.binding.ComponentDescriptor;
41 import dagger.internal.codegen.binding.ComponentDescriptor.ComponentMethodDescriptor;
63 ValidationReport<TypeElement> validate(ComponentDescriptor componentDescriptor) { in validate()
74 report, componentDescriptor, LinkedHashMultimap.<ComponentDescriptor, Scope>create()); in validate()
82 ComponentDescriptor componentDescriptor, in validateSubcomponentMethods()
137 ComponentDescriptor subject, in validateScopeHierarchy()
138 SetMultimap<ComponentDescriptor, Scope> scopesByComponent) { in validateScopeHierarchy() argument
141 for (ComponentDescriptor childComponent : subject.childComponents()) { in validateScopeHierarchy()
152 SetMultimap<ComponentDescriptor, Scope> overlappingScopes = in validateScopeHierarchy()
159 for (Map.Entry<ComponentDescriptor, Scope> entry : overlappingScopes.entries()) { in validateScopeHierarchy()
[all …]
DComponentDescriptorValidator.java44 import dagger.internal.codegen.binding.ComponentDescriptor;
114 public ValidationReport<TypeElement> validate(ComponentDescriptor component) { in validate()
122 final ComponentDescriptor rootComponent;
123 final Map<ComponentDescriptor, ValidationReport.Builder<TypeElement>> reports =
126 ComponentValidation(ComponentDescriptor rootComponent) { in ComponentValidation()
139 private ValidationReport.Builder<TypeElement> report(ComponentDescriptor component) { in report()
145 Diagnostic.Kind kind, ComponentDescriptor component, String message) { in reportComponentItem()
150 private void reportComponentError(ComponentDescriptor component, String error) { in reportComponentError()
154 void visitComponent(ComponentDescriptor component) { in visitComponent()
163 private void validateComponentDependencyHierarchy(ComponentDescriptor component) { in validateComponentDependencyHierarchy()
[all …]
/external/dagger2/java/dagger/internal/codegen/binding/
DComponentDescriptor.java67 public abstract class ComponentDescriptor { class
179 public final ImmutableSet<ComponentDescriptor> childComponents() { in childComponents()
180 return ImmutableSet.<ComponentDescriptor>builder() in childComponents()
191 abstract ImmutableSet<ComponentDescriptor> childComponentsDeclaredByModules(); in childComponentsDeclaredByModules()
197 public abstract ImmutableBiMap<ComponentMethodDescriptor, ComponentDescriptor>
202 public ImmutableMap<TypeElement, ComponentDescriptor> childComponentsByElement() { in childComponentsByElement()
203 return Maps.uniqueIndex(childComponents(), ComponentDescriptor::typeElement); in childComponentsByElement()
208 ComponentDescriptor childComponent) { in getFactoryMethodForChildComponent()
217 abstract ImmutableBiMap<ComponentMethodDescriptor, ComponentDescriptor>
220 private final Supplier<ImmutableMap<TypeElement, ComponentDescriptor>>
[all …]
DComponentDescriptorFactory.java27 import static dagger.internal.codegen.binding.ComponentDescriptor.isComponentContributionMethod;
41 import dagger.internal.codegen.binding.ComponentDescriptor.ComponentMethodDescriptor;
77 public ComponentDescriptor rootComponentDescriptor(TypeElement typeElement) { in rootComponentDescriptor()
87 public ComponentDescriptor subcomponentDescriptor(TypeElement typeElement) { in subcomponentDescriptor()
100 public ComponentDescriptor moduleComponentDescriptor(TypeElement typeElement) { in moduleComponentDescriptor()
117 private ComponentDescriptor create( in create()
146 ImmutableSet.Builder<ComponentDescriptor> subcomponentsFromModules = ImmutableSet.builder(); in create()
156 ImmutableBiMap.Builder<ComponentMethodDescriptor, ComponentDescriptor> in create()
158 ImmutableBiMap.Builder<ComponentMethodDescriptor, ComponentDescriptor> in create()
DLegacyBindingGraph.java33 private final ComponentDescriptor componentDescriptor;
39 ComponentDescriptor componentDescriptor, in LegacyBindingGraph()
49 ComponentDescriptor componentDescriptor() { in componentDescriptor()
DComponentNodeImpl.java32 ComponentPath componentPath, ComponentDescriptor componentDescriptor) { in create()
58 public abstract ComponentDescriptor componentDescriptor(); in componentDescriptor()
DBindingGraphFactory.java27 import static dagger.internal.codegen.binding.ComponentDescriptor.isComponentContributionMethod;
116 ComponentDescriptor componentDescriptor, boolean createFullBindingGraph) { in create()
124 ComponentDescriptor componentDescriptor, in createLegacyBindingGraph()
235 Set<ComponentDescriptor> resolvedSubcomponents = new HashSet<>(); in createLegacyBindingGraph()
237 for (ComponentDescriptor subcomponent : in createLegacyBindingGraph()
260 ComponentDescriptor componentDescriptor, Optional<Resolver> parentResolver) { in modules()
271 ComponentDescriptor component, Optional<Resolver> parentResolver) { in shouldIncludeImplicitProductionModules()
310 final ComponentDescriptor componentDescriptor;
324 final Queue<ComponentDescriptor> subcomponentsToResolve = new ArrayDeque<>();
328 ComponentDescriptor componentDescriptor, in Resolver()
[all …]
DResolvedBindings.java101 ImmutableSet<? extends Binding> bindingsOwnedBy(ComponentDescriptor component) { in bindingsOwnedBy()
149 ComponentDescriptor owningComponent, in forMembersInjectionBinding()
DBindingGraphConverter.java37 import dagger.internal.codegen.binding.ComponentDescriptor.ComponentMethodDescriptor;
166 .map(ComponentDescriptor::typeElement) in visitComponent()
377 ComponentDescriptor subcomponent = in subcomponentNode()
/external/dagger2/java/dagger/hilt/processor/internal/root/
DRootGenerator.java37 import dagger.hilt.processor.internal.ComponentDescriptor;
78 ImmutableMap<ComponentDescriptor, ClassName> subcomponentBuilderModules = in generateComponents()
82 for (ComponentDescriptor componentDescriptor : componentTree.getComponentDescriptors()) { in generateComponents()
113 MutableGraph<ComponentDescriptor> graph = in filterDescriptors()
132 private ImmutableMap<ComponentDescriptor, ClassName> subcomponentBuilderModules( in subcomponentBuilderModules()
134 ImmutableMap.Builder<ComponentDescriptor, ClassName> modules = ImmutableMap.builder(); in subcomponentBuilderModules()
135 for (ComponentDescriptor descriptor : metadata.componentTree().getComponentDescriptors()) { in subcomponentBuilderModules()
178 private Optional<TypeSpec> componentBuilder(ComponentDescriptor descriptor) { in componentBuilder()
191 private ClassName componentAnnotation(ComponentDescriptor componentDescriptor) { in componentAnnotation()
200 private ClassName componentBuilderAnnotation(ComponentDescriptor componentDescriptor) { in componentBuilderAnnotation()
[all …]
DRootMetadata.java31 import dagger.hilt.processor.internal.ComponentDescriptor;
149 for (ComponentDescriptor componentDescriptor : componentTree.getComponentDescriptors()) { in validate()
193 for (ComponentDescriptor componentDescriptor : componentTree.getComponentDescriptors()) { in getScopesByComponentUncached()
/external/dagger2/java/dagger/hilt/processor/internal/definecomponent/
DDefineComponents.java31 import dagger.hilt.processor.internal.ComponentDescriptor;
60 private final Map<Element, ComponentDescriptor> componentDescriptors = new HashMap<>();
69 public ComponentDescriptor componentDescriptor(Element element) { in componentDescriptor()
76 private ComponentDescriptor uncachedComponentDescriptor(Element element) { in uncachedComponentDescriptor()
78 ComponentDescriptor.Builder builder = in uncachedComponentDescriptor()
79 ComponentDescriptor.builder() in uncachedComponentDescriptor()
128 private static ComponentDescriptor toComponentDescriptor( in toComponentDescriptor()
131 ComponentDescriptor.Builder builder = in toComponentDescriptor()
132 ComponentDescriptor.builder() in toComponentDescriptor()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentHjarGenerator.java45 import dagger.internal.codegen.binding.ComponentDescriptor;
75 final class ComponentHjarGenerator extends SourceFileGenerator<ComponentDescriptor> {
94 public ClassName nameGeneratedType(ComponentDescriptor input) { in nameGeneratedType()
99 public Element originatingElement(ComponentDescriptor input) { in originatingElement()
104 public Optional<TypeSpec.Builder> write(ComponentDescriptor componentDescriptor) { in write()
193 private static Stream<ComponentRequirement> componentRequirements(ComponentDescriptor component) { in componentRequirements()
210 private boolean hasBindsInstanceMethods(ComponentDescriptor componentDescriptor) { in hasBindsInstanceMethods()
241 private static MethodSpec builderBuildMethod(ComponentDescriptor component) { in builderBuildMethod()
256 private static MethodSpec createMethod(ComponentDescriptor componentDescriptor) { in createMethod()
DComponentGeneratorModule.java24 import dagger.internal.codegen.binding.ComponentDescriptor;
42 abstract SourceFileGenerator<ComponentDescriptor> componentHjarGenerator( in componentHjarGenerator()
DMethodSignature.java25 import dagger.internal.codegen.binding.ComponentDescriptor.ComponentMethodDescriptor;
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/
DComponentDependencies.java37 import dagger.hilt.processor.internal.ComponentDescriptor;
177 ImmutableSet<ComponentDescriptor> descriptors, Elements elements) { in from()
178 Map<String, ComponentDescriptor> descriptorLookup = descriptorLookupMap(descriptors); in from()
199 for (ComponentDescriptor componentDescriptor : metadata.componentDescriptors()) { in from()
237 private static ImmutableMap<String, ComponentDescriptor> descriptorLookupMap( in descriptorLookupMap()
238 ImmutableSet<ComponentDescriptor> descriptors) { in descriptorLookupMap()
239 ImmutableMap.Builder<String, ComponentDescriptor> builder = ImmutableMap.builder(); in descriptorLookupMap()
240 for (ComponentDescriptor descriptor : descriptors) { in descriptorLookupMap()
343 Map<String, ComponentDescriptor> descriptorLookup, in create()
371 abstract ImmutableList<ComponentDescriptor> componentDescriptors(); in componentDescriptors()
[all …]
/external/dagger2/java/dagger/internal/codegen/
DComponentProcessingStep.java34 import dagger.internal.codegen.binding.ComponentDescriptor;
107 ComponentDescriptor componentDescriptor = in processRootComponent()
125 ComponentDescriptor subcomponentDescriptor = in processSubcomponent()
146 private boolean validateFullBindingGraph(ComponentDescriptor componentDescriptor) { in validateFullBindingGraph()
155 private boolean isValid(ComponentDescriptor componentDescriptor) { in isValid()
DComponentHjarProcessingStep.java29 import dagger.internal.codegen.binding.ComponentDescriptor;
59 private final SourceFileGenerator<ComponentDescriptor> componentGenerator;
67 SourceFileGenerator<ComponentDescriptor> componentGenerator) { in ComponentHjarProcessingStep()

12