Home
last modified time | relevance | path

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

12

/external/dagger2/java/dagger/internal/codegen/
DSubcomponentNames.java46 private final ImmutableMap<ComponentDescriptor, String> namesByDescriptor;
47 private final ImmutableMap<Key, ComponentDescriptor> descriptorsByCreatorKey;
55 String get(ComponentDescriptor componentDescriptor) { in get()
70 String getCreatorName(ComponentDescriptor componentDescriptor) { in getCreatorName()
76 private static ImmutableMap<ComponentDescriptor, String> namesByDescriptor(BindingGraph graph) { in namesByDescriptor()
77 ImmutableListMultimap<String, ComponentDescriptor> componentDescriptorsBySimpleName = in namesByDescriptor()
81 ImmutableMap<ComponentDescriptor, Namer> componentNamers = in namesByDescriptor()
83 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 …]
DComponentHierarchyValidator.java40 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
59 ValidationReport<TypeElement> validate(ComponentDescriptor componentDescriptor) { in validate()
70 report, componentDescriptor, LinkedHashMultimap.<ComponentDescriptor, Scope>create()); in validate()
78 ComponentDescriptor componentDescriptor, in validateSubcomponentMethods()
133 ComponentDescriptor subject, in validateScopeHierarchy()
134 SetMultimap<ComponentDescriptor, Scope> scopesByComponent) { in validateScopeHierarchy() argument
137 for (ComponentDescriptor childComponent : subject.childComponents()) { in validateScopeHierarchy()
148 SetMultimap<ComponentDescriptor, Scope> overlappingScopes = in validateScopeHierarchy()
155 for (Map.Entry<ComponentDescriptor, Scope> entry : overlappingScopes.entries()) { in validateScopeHierarchy()
172 ComponentDescriptor componentDescriptor, in validateProductionModuleUniqueness()
[all …]
DComponentDescriptor.java66 abstract class ComponentDescriptor { class
179 final ImmutableSet<ComponentDescriptor> childComponents() { in childComponents()
180 return ImmutableSet.<ComponentDescriptor>builder() in childComponents()
191 abstract ImmutableSet<ComponentDescriptor> childComponentsDeclaredByModules(); in childComponentsDeclaredByModules()
197 abstract ImmutableBiMap<ComponentMethodDescriptor, ComponentDescriptor>
202 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 …]
DComponentDescriptorValidator.java102 ValidationReport<TypeElement> validate(ComponentDescriptor component) { in validate()
110 final ComponentDescriptor rootComponent;
111 final Map<ComponentDescriptor, ValidationReport.Builder<TypeElement>> reports =
114 ComponentValidation(ComponentDescriptor rootComponent) { in ComponentValidation()
127 private ValidationReport.Builder<TypeElement> report(ComponentDescriptor component) { in report()
133 Diagnostic.Kind kind, ComponentDescriptor component, String message) { in reportComponentItem()
138 private void reportComponentError(ComponentDescriptor component, String error) { in reportComponentError()
142 void visitComponent(ComponentDescriptor component) { in visitComponent()
151 private void validateComponentDependencyHierarchy(ComponentDescriptor component) { in validateComponentDependencyHierarchy()
157 ComponentDescriptor component, TypeElement dependency, Deque<TypeElement> dependencyStack) { in validateComponentDependencyHierarchy()
[all …]
DComponentDescriptorFactory.java25 import static dagger.internal.codegen.ComponentDescriptor.isComponentContributionMethod;
40 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
73 ComponentDescriptor rootComponentDescriptor(TypeElement typeElement) { in rootComponentDescriptor()
83 ComponentDescriptor subcomponentDescriptor(TypeElement typeElement) { in subcomponentDescriptor()
96 ComponentDescriptor moduleComponentDescriptor(TypeElement typeElement) { in moduleComponentDescriptor()
113 private ComponentDescriptor create( in create()
142 ImmutableSet.Builder<ComponentDescriptor> subcomponentsFromModules = ImmutableSet.builder(); in create()
152 ImmutableBiMap.Builder<ComponentMethodDescriptor, ComponentDescriptor> in create()
154 ImmutableBiMap.Builder<ComponentMethodDescriptor, ComponentDescriptor> in create()
DComponentHjarProcessingStep.java124 private final class EmptyComponentGenerator extends SourceFileGenerator<ComponentDescriptor> {
130 ClassName nameGeneratedType(ComponentDescriptor input) { in nameGeneratedType()
135 Element originatingElement(ComponentDescriptor input) { in originatingElement()
141 ClassName generatedTypeName, ComponentDescriptor componentDescriptor) { in write()
231 private Stream<ComponentRequirement> componentRequirements(ComponentDescriptor component) { in componentRequirements()
240 private boolean hasBindsInstanceMethods(ComponentDescriptor componentDescriptor) { in hasBindsInstanceMethods()
271 private MethodSpec builderBuildMethod(ComponentDescriptor component) { in builderBuildMethod()
286 private MethodSpec createMethod(ComponentDescriptor componentDescriptor) { in createMethod()
DComponentNodeImpl.java32 ComponentPath componentPath, ComponentDescriptor componentDescriptor) { in create()
58 abstract ComponentDescriptor componentDescriptor(); in componentDescriptor()
DBindingGraphFactory.java24 import static dagger.internal.codegen.ComponentDescriptor.isComponentContributionMethod;
103 BindingGraph create(ComponentDescriptor componentDescriptor, boolean createFullBindingGraph) { in create()
109 ComponentDescriptor componentDescriptor, in create()
207 Set<ComponentDescriptor> resolvedSubcomponents = new HashSet<>(); in create()
209 for (ComponentDescriptor subcomponent : in create()
233 ComponentDescriptor componentDescriptor, Optional<Resolver> parentResolver) { in modules()
244 ComponentDescriptor component, Optional<Resolver> parentResolver) { in shouldIncludeImplicitProductionModules()
282 final ComponentDescriptor componentDescriptor;
296 final Queue<ComponentDescriptor> subcomponentsToResolve = new ArrayDeque<>();
300 ComponentDescriptor componentDescriptor, in Resolver()
[all …]
DComponentProcessingStep.java133 ComponentDescriptor componentDescriptor = in processRootComponent()
155 ComponentDescriptor subcomponentDescriptor = in processSubcomponent()
236 private boolean isFullBindingGraphValid(ComponentDescriptor componentDescriptor) { in isFullBindingGraphValid()
246 private boolean isValid(ComponentDescriptor componentDescriptor) { in isValid()
DDeserializedComponentImplementationBuilder.java81 ComponentImplementation create(ComponentDescriptor component, TypeElement generatedComponent) { in create()
131 ComponentDescriptor component, TypeElement superclassElement) { in deserializedSuperclassImplementation()
209 ComponentDescriptor component, in addChildImplementation()
218 ComponentDescriptor child = in addChildImplementation()
DBindingGraph.java49 abstract ComponentDescriptor componentDescriptor(); in componentDescriptor()
185 ImmutableSet<ComponentDescriptor> componentDescriptors() { in componentDescriptors()
205 ComponentDescriptor componentDescriptor, in create()
DComponentImplementation.java179 private final ComponentDescriptor componentDescriptor;
211 ComponentDescriptor componentDescriptor, in ComponentImplementation()
282 ComponentDescriptor componentDescriptor, in forDeserializedComponent()
335 ComponentDescriptor componentDescriptor() { in componentDescriptor()
481 ClassName getSubcomponentName(ComponentDescriptor childDescriptor) { in getSubcomponentName()
506 Optional<ComponentImplementation> childImplementation(ComponentDescriptor child) { in childImplementation()
658 void addChild(ComponentDescriptor child, ComponentImplementation childImplementation) { in addChild()
DResolvedBindings.java121 ImmutableSet<? extends Binding> bindingsOwnedBy(ComponentDescriptor component) { in bindingsOwnedBy()
179 ComponentDescriptor owningComponent, in forMembersInjectionBinding()
DMissingBindingExpression.java19 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DDeferredModifiableBindingExpression.java21 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DProducerNodeInstanceBindingExpression.java22 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DBindingExpression.java23 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DMethodSignature.java25 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DComponentMethodBindingExpression.java23 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DMembersInjectionBindingExpression.java25 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DDerivedFromFrameworkInstanceBindingExpression.java24 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DProducerEntryPointView.java25 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DModifiableAbstractMethodBindingExpression.java26 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DComponentTreeTraverser.java25 import dagger.internal.codegen.ComponentDescriptor.ComponentMethodDescriptor;
DComponentImplementationFactory.java114 ComponentDescriptor child, ComponentImplementation parentImplementation) { in findChildSuperclassImplementation()

12