Home
last modified time | relevance | path

Searched refs:componentImplementation (Results 1 – 24 of 24) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/writing/
DComponentRequirementExpressions.java55 private final ComponentImplementation componentImplementation; field in ComponentRequirementExpressions
63 ComponentImplementation componentImplementation, in ComponentRequirementExpressions() argument
68 this.componentImplementation = componentImplementation; in ComponentRequirementExpressions()
108 if (componentImplementation.componentDescriptor().hasCreator()) { in createField()
109 return new ComponentParameterField(requirement, componentImplementation, Optional.empty()); in createField()
115 requirement, componentImplementation, Optional.of(parameterName)); in createField()
117 return new InstantiableModuleField(requirement, componentImplementation); in createField()
120 String.format("Can't create %s in %s", requirement, componentImplementation.name())); in createField()
126 final ComponentImplementation componentImplementation; field in ComponentRequirementExpressions.AbstractField
132 ComponentImplementation componentImplementation) { in AbstractField() argument
[all …]
DComponentBindingExpressions.java80 private final ComponentImplementation componentImplementation; field in ComponentBindingExpressions
97 ComponentImplementation componentImplementation, in ComponentBindingExpressions() argument
108 this.componentImplementation = componentImplementation; in ComponentBindingExpressions()
118 componentImplementation, this, graph, elements, types, metadataUtil); in ComponentBindingExpressions()
120 new InnerSwitchingProviders(componentImplementation, this, types); in ComponentBindingExpressions()
144 ComponentImplementation componentImplementation) { in getDependencyExpressionForComponentMethod() argument
146 .getDependencyExpressionForComponentMethod(componentMethod, componentImplementation); in getDependencyExpressionForComponentMethod()
164 componentImplementation.name())); in getCreateMethodArgumentsCodeBlocks()
169 .map(request -> getDependencyExpression(request, componentImplementation.name())) in getCreateMethodArgumentsCodeBlocks()
225 .getComponentMethodImplementation(componentMethod, componentImplementation); in getComponentMethod()
[all …]
DFrameworkFieldInitializer.java76 private final ComponentImplementation componentImplementation; field in FrameworkFieldInitializer
83 ComponentImplementation componentImplementation, in FrameworkFieldInitializer() argument
86 this.componentImplementation = checkNotNull(componentImplementation); in FrameworkFieldInitializer()
98 return MemberSelect.localField(componentImplementation.name(), checkNotNull(fieldSpec).name); in memberSelect()
117 componentImplementation.addInitialization(codeBuilder.build()); in initializeField()
125 componentImplementation.addInitialization( in initializeField()
143 boolean useRawType = !componentImplementation.isTypeAccessible(binding.key().type()); in getOrCreateField()
166 fieldType, componentImplementation.getUniqueFieldName(contributionBindingField.name())); in getOrCreateField()
173 componentImplementation.addField(FRAMEWORK_FIELD, fieldSpec); in getOrCreateField()
DMethodBindingExpression.java51 private final ComponentImplementation componentImplementation; field in MethodBindingExpression
61 ComponentImplementation componentImplementation, in MethodBindingExpression() argument
67 this.componentImplementation = checkNotNull(componentImplementation); in MethodBindingExpression()
96 requestingClass.equals(componentImplementation.name()) in getDependencyExpression()
98 : CodeBlock.of("$L.$L", componentImplementation.externalReferenceBlock(), methodCall)); in getDependencyExpression()
119 wrappedBindingExpression.getDependencyExpression(componentImplementation.name()) in methodBody()
128 componentMethod, componentImplementation) in methodBodyForComponentMethod()
163 return types.accessibleType(requestedType, componentImplementation.name()); in returnType()
167 return componentImplementation.componentDescriptor().firstMatchingComponentMethod(request); in matchingComponentMethod()
228 componentImplementation.getUniqueFieldName( in createField()
[all …]
DPrivateMethodBindingExpression.java42 private final ComponentImplementation componentImplementation; field in PrivateMethodBindingExpression
52 ComponentImplementation componentImplementation, in PrivateMethodBindingExpression() argument
60 componentImplementation, in PrivateMethodBindingExpression()
64 this.componentImplementation = checkNotNull(componentImplementation); in PrivateMethodBindingExpression()
73 methodName = componentImplementation.getUniqueMethodName(request); in addMethod()
76 componentImplementation.addMethod( in addMethod()
DMultibindingFactoryCreationExpression.java31 private final ComponentImplementation componentImplementation; field in MultibindingFactoryCreationExpression
37 ComponentImplementation componentImplementation, in MultibindingFactoryCreationExpression() argument
40 this.componentImplementation = checkNotNull(componentImplementation); in MultibindingFactoryCreationExpression()
50 componentImplementation.name()) in multibindingDependencyExpression()
68 return !componentImplementation.isTypeAccessible(binding.key().type()); in useRawType()
DComponentMethodBindingExpression.java36 private final ComponentImplementation componentImplementation; field in ComponentMethodBindingExpression
44 ComponentImplementation componentImplementation, in ComponentMethodBindingExpression() argument
52 componentImplementation, in ComponentMethodBindingExpression()
54 this.componentImplementation = checkNotNull(componentImplementation); in ComponentMethodBindingExpression()
70 return componentMethod.equals(this.componentMethod) && component.equals(componentImplementation) in getComponentMethodImplementation()
DMembersInjectionMethods.java51 private final ComponentImplementation componentImplementation; field in MembersInjectionMethods
59 ComponentImplementation componentImplementation, in MembersInjectionMethods() argument
65 this.componentImplementation = checkNotNull(componentImplementation); in MembersInjectionMethods()
88 isTypeAccessibleFrom(keyType, componentImplementation.name().packageName()) in membersInjectionMethod()
95 String methodName = componentImplementation.getUniqueMethodName("inject" + bindingTypeName); in membersInjectionMethod()
111 componentImplementation.name(), in membersInjectionMethod()
116 .getDependencyArgumentExpression(request, componentImplementation.name()) in membersInjectionMethod()
123 componentImplementation.addMethod(MEMBERS_INJECTION_METHOD, method); in membersInjectionMethod()
DOptionalFactoryInstanceCreationExpression.java34 private final ComponentImplementation componentImplementation; field in OptionalFactoryInstanceCreationExpression
40 ComponentImplementation componentImplementation, in OptionalFactoryInstanceCreationExpression() argument
44 this.componentImplementation = componentImplementation; in OptionalFactoryInstanceCreationExpression()
58 componentImplementation.name()) in creationExpression()
DDelegatingFrameworkInstanceCreationExpression.java34 private final ComponentImplementation componentImplementation; field in DelegatingFrameworkInstanceCreationExpression
39 ComponentImplementation componentImplementation, in DelegatingFrameworkInstanceCreationExpression() argument
42 this.componentImplementation = checkNotNull(componentImplementation); in DelegatingFrameworkInstanceCreationExpression()
53 componentImplementation.name()) in creationExpression()
DMapFactoryCreationExpression.java38 private final ComponentImplementation componentImplementation; field in MapFactoryCreationExpression
45 ComponentImplementation componentImplementation, in MapFactoryCreationExpression() argument
49 super(binding, componentImplementation, componentBindingExpressions); in MapFactoryCreationExpression()
51 this.componentImplementation = checkNotNull(componentImplementation); in MapFactoryCreationExpression()
80 getMapKeyExpression(contributionBinding, componentImplementation.name(), elements), in creationExpression()
DProducerFromProviderCreationExpression.java35 private final ComponentImplementation componentImplementation; field in ProducerFromProviderCreationExpression
40 ComponentImplementation componentImplementation, in ProducerFromProviderCreationExpression() argument
43 this.componentImplementation = checkNotNull(componentImplementation); in ProducerFromProviderCreationExpression()
54 componentImplementation.name()) in creationExpression()
DProducerNodeInstanceBindingExpression.java33 private final ComponentImplementation componentImplementation; field in ProducerNodeInstanceBindingExpression
42 ComponentImplementation componentImplementation) { in ProducerNodeInstanceBindingExpression() argument
44 this.componentImplementation = checkNotNull(componentImplementation); in ProducerNodeInstanceBindingExpression()
57 componentImplementation.addCancellableProducerKey(key); in getDependencyExpression()
DDependencyMethodProviderCreationExpression.java51 private final ComponentImplementation componentImplementation; field in DependencyMethodProviderCreationExpression
59 ComponentImplementation componentImplementation, in DependencyMethodProviderCreationExpression() argument
64 this.componentImplementation = checkNotNull(componentImplementation); in DependencyMethodProviderCreationExpression()
95 componentImplementation.addType( in creationExpression()
112 dependency(), componentImplementation.name())); in creationExpression()
120 return componentImplementation.name().nestedClass(factoryName); in factoryClassName()
DDependencyMethodProducerCreationExpression.java46 private final ComponentImplementation componentImplementation; field in DependencyMethodProducerCreationExpression
52 ComponentImplementation componentImplementation, in DependencyMethodProducerCreationExpression() argument
56 this.componentImplementation = checkNotNull(componentImplementation); in DependencyMethodProducerCreationExpression()
79 componentImplementation.name().nestedClass("Anonymous"))) in creationExpression()
DSwitchingProviders.java99 private final ComponentImplementation componentImplementation; field in SwitchingProviders
104 SwitchingProviders(ComponentImplementation componentImplementation, DaggerTypes types) { in SwitchingProviders() argument
105 this.componentImplementation = checkNotNull(componentImplementation); in SwitchingProviders()
107 this.owningComponent = checkNotNull(componentImplementation).name(); in SwitchingProviders()
127 componentImplementation.addTypeSupplier(switchingProviderBuilder::build); in getSwitchingProviderBuilder()
DOptionalFactories.java79 private final ComponentImplementation componentImplementation; field in OptionalFactories
81 @Inject OptionalFactories(@TopLevel ComponentImplementation componentImplementation) { in OptionalFactories() argument
82 this.componentImplementation = componentImplementation; in OptionalFactories()
125 componentImplementation.addMethod(ABSENT_OPTIONAL_METHOD, method); in absentOptionalProvider()
154 componentImplementation.addField(ABSENT_OPTIONAL_FIELD, field); in absentOptionalProviderMethod()
303 componentImplementation.addType(PRESENT_FACTORY, type);
DSetFactoryCreationExpression.java38 ComponentImplementation componentImplementation, in SetFactoryCreationExpression() argument
41 super(binding, componentImplementation, componentBindingExpressions); in SetFactoryCreationExpression()
DInnerSwitchingProviders.java45 ComponentImplementation componentImplementation, in InnerSwitchingProviders() argument
48 super(componentImplementation, types); in InnerSwitchingProviders()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentImplementationBuilder.java101 private final ComponentImplementation componentImplementation; field in ComponentImplementationBuilder
115 ComponentImplementation componentImplementation, in ComponentImplementationBuilder() argument
125 this.componentImplementation = componentImplementation; in ComponentImplementationBuilder()
142 componentImplementation.name()); in build()
150 .forEach(method -> componentImplementation.claimMethodName(method.getSimpleName())); in build()
163 return componentImplementation; in build()
168 componentImplementation.addSupertype(graph.componentTypeElement()); in setSupertype()
174 parent.get().componentImplementation.addType(SUBCOMPONENT, creator); in addCreatorClass()
176 componentImplementation.addType(COMPONENT_CREATOR, creator); in addCreatorClass()
198 componentImplementation.addMethod(COMPONENT_METHOD, methodSpec); in addInterfaceMethods()
[all …]
DComponentCreatorImplementationFactory.java70 private final ComponentImplementation componentImplementation; field in ComponentCreatorImplementationFactory
78 ComponentImplementation componentImplementation, in ComponentCreatorImplementationFactory() argument
83 this.componentImplementation = componentImplementation; in ComponentCreatorImplementationFactory()
92 if (!componentImplementation.componentDescriptor().hasCreator()) { in create()
97 componentImplementation.componentDescriptor().creatorDescriptor(); in create()
101 ? new BuilderForCreatorDescriptor(componentImplementation, creatorDescriptor.get()) in create()
102 : new BuilderForGeneratedRootComponentBuilder(componentImplementation); in create()
108 final ComponentImplementation componentImplementation; field in ComponentCreatorImplementationFactory.Builder
114 Builder(ComponentImplementation componentImplementation) { in Builder() argument
115 this.componentImplementation = componentImplementation; in Builder()
[all …]
DComponentImplementationFactory.java64 ComponentImplementation componentImplementation = in createComponentImplementationUncached() local
73 .topLevelComponent(componentImplementation) in createComponentImplementationUncached()
76 .componentImplementation(componentImplementation) in createComponentImplementationUncached()
DComponentGenerator.java67 ComponentImplementation componentImplementation = in write() local
69 verify(componentImplementation.name().equals(nameGeneratedType(bindingGraph))); in write()
70 return Optional.of(componentImplementation.generate()); in write()
DCurrentImplementationSubcomponent.java44 Builder componentImplementation(ComponentImplementation componentImplementation); in componentImplementation() method