Home
last modified time | relevance | path

Searched refs:ComponentRequirement (Results 1 – 22 of 22) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentCreatorImplementationFactory.java50 import dagger.internal.codegen.binding.ComponentRequirement;
51 import dagger.internal.codegen.binding.ComponentRequirement.NullPolicy;
112 private ImmutableMap<ComponentRequirement, FieldSpec> fields;
140 final ImmutableSet<ComponentRequirement> componentConstructorRequirements() { in componentConstructorRequirements()
145 abstract ImmutableSet<ComponentRequirement> setterMethods(); in setterMethods()
151 abstract ImmutableMap<ComponentRequirement, String> factoryMethodParameters(); in factoryMethodParameters()
158 abstract ImmutableMap<ComponentRequirement, RequirementStatus> userSettableRequirements(); in userSettableRequirements()
164 private Set<ComponentRequirement> neededUserSettableRequirements() { in neededUserSettableRequirements()
186 private ImmutableMap<ComponentRequirement, FieldSpec> addFields() { in addFields()
189 ImmutableMap<ComponentRequirement, FieldSpec> result = in addFields()
[all …]
DComponentImplementationBuilder.java60 import dagger.internal.codegen.binding.ComponentRequirement;
332 ImmutableMap<ComponentRequirement, ParameterSpec> initializationParameters) { in implementInitializationMethod() argument
407 private final ImmutableMap<ComponentRequirement, ParameterSpec> initializationParameters() { in initializationParameters()
408 Map<ComponentRequirement, ParameterSpec> parameters; in initializationParameters()
410 parameters = Maps.toMap(graph.componentRequirements(), ComponentRequirement::toParameterSpec); in initializationParameters()
430 private ImmutableMap<ComponentRequirement, ParameterSpec> renameParameters( in renameParameters() argument
431 Map<ComponentRequirement, ParameterSpec> parameters) { in renameParameters()
520 private static Map<ComponentRequirement, ParameterSpec> getFactoryMethodParameters( in getFactoryMethodParameters()
DComponentHjarGenerator.java46 import dagger.internal.codegen.binding.ComponentRequirement;
193 private static Stream<ComponentRequirement> componentRequirements(ComponentDescriptor component) { in componentRequirements()
207 .map(module -> ComponentRequirement.forModule(module.moduleElement().asType()))); in componentRequirements()
/external/dagger2/java/dagger/internal/codegen/binding/
DComponentCreatorDescriptor.java75 abstract ImmutableSetMultimap<ComponentRequirement, ExecutableElement> unvalidatedSetterMethods(); in unvalidatedSetterMethods()
83 abstract ImmutableSetMultimap<ComponentRequirement, VariableElement>
93 public final ImmutableSetMultimap<ComponentRequirement, Element>
109 ImmutableMap<ComponentRequirement, Element> requirementElements() { in requirementElements()
115 public ImmutableMap<ComponentRequirement, ExecutableElement> setterMethods() { in setterMethods()
121 public ImmutableMap<ComponentRequirement, VariableElement> factoryParameters() { in factoryParameters()
131 public final ImmutableSet<ComponentRequirement> userSettableRequirements() { in userSettableRequirements()
137 public final ImmutableSet<ComponentRequirement> moduleAndDependencyRequirements() { in moduleAndDependencyRequirements()
144 final ImmutableSet<ComponentRequirement> boundInstanceRequirements() { in boundInstanceRequirements()
146 .filter(ComponentRequirement::isBoundInstance) in boundInstanceRequirements()
[all …]
DComponentDescriptor.java102 public abstract ImmutableSet<ComponentRequirement> dependencies(); in dependencies()
105 public final ImmutableSet<ComponentRequirement> dependenciesAndConcreteModules() { in dependenciesAndConcreteModules()
109 .map(module -> ComponentRequirement.forModule(module.asType())), in dependenciesAndConcreteModules()
137 ImmutableSet<ComponentRequirement> requirements() { in requirements()
138 ImmutableSet.Builder<ComponentRequirement> requirements = ImmutableSet.builder(); in requirements()
143 .map(module -> ComponentRequirement.forModule(module.moduleElement().asType())) in requirements()
159 public abstract ImmutableMap<ExecutableElement, ComponentRequirement>
163 public final ComponentRequirement getDependencyThatDefinesMethod(Element method) { in getDependencyThatDefinesMethod()
DComponentRequirement.java54 public abstract class ComponentRequirement { class
209 public static ComponentRequirement forDependency(TypeMirror type) { in forDependency()
218 public static ComponentRequirement forModule(TypeMirror type) { in forModule()
227 static ComponentRequirement forBoundInstance(Key key, boolean nullable, String variableName) { in forBoundInstance()
236 public static ComponentRequirement forBoundInstance(ContributionBinding binding) { in forBoundInstance()
DComponentDescriptorFactory.java119 ImmutableSet<ComponentRequirement> componentDependencies = in create()
121 .map(ComponentRequirement::forDependency) in create()
124 ImmutableMap.Builder<ExecutableElement, ComponentRequirement> dependenciesByDependencyMethod = in create()
127 for (ComponentRequirement componentDependency : componentDependencies) { in create()
DBindingGraph.java265 public final ImmutableMap<ComponentRequirement, VariableElement> factoryMethodParameters() { in factoryMethodParameters()
269 parameter -> ComponentRequirement.forModule(parameter.asType()), in factoryMethodParameters()
283 public ImmutableSet<ComponentRequirement> componentRequirements() { in componentRequirements()
289 ImmutableSet.Builder<ComponentRequirement> requirements = ImmutableSet.builder(); in componentRequirements()
DBindingFactory.java335 public ProvisionBinding componentDependencyBinding(ComponentRequirement dependency) { in componentDependencyBinding()
383 ProvisionBinding boundInstanceBinding(ComponentRequirement requirement, Element element) { in boundInstanceBinding()
DBindingGraphFactory.java137 for (ComponentRequirement dependency : componentDescriptor.dependencies()) { in createLegacyBindingGraph()
/external/dagger2/java/dagger/internal/codegen/writing/
DComponentRequirementExpressions.java32 import dagger.internal.codegen.binding.ComponentRequirement;
52 private final Map<ComponentRequirement, ComponentRequirementExpression>
77 CodeBlock getExpression(ComponentRequirement componentRequirement, ClassName requestingClass) { in getExpression()
89 ComponentRequirement componentRequirement, ClassName requestingClass) { in getExpressionDuringInitialization()
93 ComponentRequirementExpression getExpression(ComponentRequirement componentRequirement) { in getExpression()
107 private ComponentRequirementExpression createField(ComponentRequirement requirement) { in createField()
125 final ComponentRequirement componentRequirement;
131 ComponentRequirement componentRequirement, in AbstractField()
176 ComponentRequirement module, ComponentImplementation componentImplementation) { in InstantiableModuleField()
199 ComponentRequirement componentRequirement, in ComponentParameterField()
DComponentCreatorImplementation.java24 import dagger.internal.codegen.binding.ComponentRequirement;
32 TypeSpec spec, ClassName name, ImmutableMap<ComponentRequirement, FieldSpec> fields) { in create() argument
43 abstract ImmutableMap<ComponentRequirement, FieldSpec> fields(); in fields()
DComponentRequirementBindingExpression.java20 import dagger.internal.codegen.binding.ComponentRequirement;
30 private final ComponentRequirement componentRequirement;
35 ComponentRequirement componentRequirement, in ComponentRequirementBindingExpression()
DComponentProvisionBindingExpression.java25 import dagger.internal.codegen.binding.ComponentRequirement;
61 private ComponentRequirement componentRequirement() { in componentRequirement()
DDependencyMethodProducerCreationExpression.java33 import dagger.internal.codegen.binding.ComponentRequirement;
63 ComponentRequirement dependency = in creationExpression()
DComponentBindingExpressions.java46 import dagger.internal.codegen.binding.ComponentRequirement;
163 ComponentRequirement.forModule(binding.contributingModule().get().asType()), in getCreateMethodArgumentsCodeBlocks()
334 binding, ComponentRequirement.forBoundInstance(binding)); in frameworkInstanceCreationExpression()
338 binding, ComponentRequirement.forDependency(binding.key().type())); in frameworkInstanceCreationExpression()
389 ContributionBinding binding, ComponentRequirement componentRequirement) { in instanceFactoryCreationExpression()
538 ComponentRequirement.forDependency(binding.key().type()), in unscopedDirectInstanceExpression()
570 ComponentRequirement.forBoundInstance(binding), in unscopedDirectInstanceExpression()
DDependencyMethodProviderCreationExpression.java36 import dagger.internal.codegen.binding.ComponentRequirement;
123 private ComponentRequirement dependency() { in dependency()
DComponentRequirementExpression.java21 import dagger.internal.codegen.binding.ComponentRequirement;
DSimpleMethodBindingExpression.java32 import dagger.internal.codegen.binding.ComponentRequirement;
178 .map(ComponentRequirement::forModule) in moduleReference()
DComponentImplementation.java48 import dagger.internal.codegen.binding.ComponentRequirement;
149 private final Map<ComponentRequirement, String> componentRequirementParameterNames =
374 public String getParameterName(ComponentRequirement requirement, String baseName) { in getParameterName()
/external/dagger2/java/dagger/internal/codegen/validation/
DComponentDescriptorValidator.java45 import dagger.internal.codegen.binding.ComponentRequirement;
46 import dagger.internal.codegen.binding.ComponentRequirement.NullPolicy;
212 .map(ComponentRequirement::typeElement) in validateDependencyScopes()
291 Set<ComponentRequirement> creatorModuleAndDependencyRequirements = in validateCreators()
294 Set<ComponentRequirement> componentModuleAndDependencyRequirements = in validateCreators()
299 Set<ComponentRequirement> inapplicableRequirementsOnCreator = in validateCreators()
318 Set<ComponentRequirement> mustBePassed = in validateCreators()
323 Set<ComponentRequirement> missingRequirements = in validateCreators()
331 missingRequirements.stream().map(ComponentRequirement::type).collect(toList())), in validateCreators()
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/
DSubcomponentFactoryMethodValidator.java23 import static dagger.internal.codegen.binding.ComponentRequirement.componentCanMakeNewInstances;