/external/dagger2/java/dagger/internal/codegen/ |
D | ComponentImplementationBuilder.java | 103 @Inject ComponentImplementation componentImplementation; field in ComponentImplementationBuilder 121 componentImplementation.name()); in build() 123 componentImplementation.setCreatorImplementation( in build() 125 componentImplementation, Optional.of(componentImplementation.graph()))); in build() 126 componentImplementation in build() 132 .forEach(method -> componentImplementation.claimMethodName(method.getSimpleName())); in build() 133 componentImplementation in build() 139 .forEach(componentImplementation::claimMethodName); in build() 153 if (componentImplementation.isAbstract() in build() 154 && !componentImplementation.baseImplementation().isPresent()) { in build() [all …]
|
D | ComponentRequirementExpressions.java | 61 private final ComponentImplementation componentImplementation; field in ComponentRequirementExpressions 70 ComponentImplementation componentImplementation, in ComponentRequirementExpressions() argument 75 this.componentImplementation = componentImplementation; in ComponentRequirementExpressions() 123 if (componentImplementation.isAbstract() && requirement.kind().isModule()) { in createMethodOrField() 131 if (componentImplementation.componentDescriptor().hasCreator()) { in createField() 132 return new ComponentParameterField(requirement, componentImplementation, Optional.empty()); in createField() 138 requirement, componentImplementation, Optional.of(parameterName)); in createField() 140 return new InstantiableModuleField(requirement, componentImplementation); in createField() 143 String.format("Can't create %s in %s", requirement, componentImplementation.name())); in createField() 149 final ComponentImplementation componentImplementation; field in ComponentRequirementExpressions.AbstractField [all …]
|
D | ModifiableBindingExpressions.java | 47 private final ComponentImplementation componentImplementation; field in ModifiableBindingExpressions 55 ComponentImplementation componentImplementation, in ModifiableBindingExpressions() argument 61 this.componentImplementation = componentImplementation; in ModifiableBindingExpressions() 75 componentImplementation.addModifiableComponentMethod( in addPossiblyModifiableComponentMethod() 82 componentImplementation.addMethod(MethodSpecKind.COMPONENT_METHOD, method); in addPossiblyModifiableComponentMethod() 93 checkState(componentImplementation.superclassImplementation().isPresent()); in possiblyReimplementedMethod() 119 componentImplementation.isAbstract())); in possiblyReimplementedMethod() 125 || componentImplementation.isAbstract())) { in possiblyReimplementedMethod() 137 && componentImplementation.isAbstract(); in possiblyReimplementedMethod() 167 supertypeMethod, componentImplementation, types)) in reimplementedMethod() [all …]
|
D | ComponentCreatorImplementationFactory.java | 74 ComponentImplementation componentImplementation, Optional<BindingGraph> graph) { in create() argument 75 if (!componentImplementation.componentDescriptor().hasCreator()) { in create() 80 componentImplementation.componentDescriptor().creatorDescriptor(); in create() 82 if (componentImplementation.isAbstract() in create() 84 || componentImplementation.superclassImplementation().isPresent())) { in create() 99 componentImplementation, creatorDescriptor.get(), graph) in create() 100 : new BuilderForGeneratedRootComponentBuilder(componentImplementation); in create() 111 final ComponentImplementation componentImplementation; field in ComponentCreatorImplementationFactory.Builder 117 Builder(ComponentImplementation componentImplementation) { in Builder() argument 118 this.componentImplementation = componentImplementation; in Builder() [all …]
|
D | ComponentBindingExpressions.java | 68 private final ComponentImplementation componentImplementation; field in ComponentBindingExpressions 84 ComponentImplementation componentImplementation, in ComponentBindingExpressions() argument 93 this.componentImplementation = componentImplementation; in ComponentBindingExpressions() 101 new MembersInjectionMethods(componentImplementation, this, graph, elements, types); in ComponentBindingExpressions() 103 new InnerSwitchingProviders(componentImplementation, this, types); in ComponentBindingExpressions() 109 componentImplementation, in ComponentBindingExpressions() 139 ComponentImplementation componentImplementation) { in getDependencyExpressionForComponentMethod() argument 141 .getDependencyExpressionForComponentMethod(componentMethod, componentImplementation); in getDependencyExpressionForComponentMethod() 159 componentImplementation.name())); in getCreateMethodArgumentsCodeBlocks() 164 .map(request -> getDependencyExpression(request, componentImplementation.name())) in getCreateMethodArgumentsCodeBlocks() [all …]
|
D | FrameworkFieldInitializer.java | 69 private final ComponentImplementation componentImplementation; field in FrameworkFieldInitializer 76 ComponentImplementation componentImplementation, in FrameworkFieldInitializer() argument 79 this.componentImplementation = checkNotNull(componentImplementation); in FrameworkFieldInitializer() 91 return MemberSelect.localField(componentImplementation.name(), checkNotNull(fieldSpec).name); in memberSelect() 111 componentImplementation.addInitialization(codeBuilder.build()); in initializeField() 119 componentImplementation.addInitialization( in initializeField() 137 boolean useRawType = !componentImplementation.isTypeAccessible(resolvedBindings.key().type()); in getOrCreateField() 147 fieldType, componentImplementation.getUniqueFieldName(contributionBindingField.name())); in getOrCreateField() 163 componentImplementation.addField(FRAMEWORK_FIELD, fieldSpec); in getOrCreateField() 173 return componentImplementation in isReplacingSuperclassFrameworkInstance()
|
D | DeserializedComponentImplementationBuilder.java | 86 ComponentImplementation componentImplementation = in create() local 94 componentImplementation.setCreatorImplementation( in create() 98 componentImplementation, Optional.empty())); in create() 109 addModifiableBindingMethod(componentImplementation, method, annotation)); in create() 114 annotation -> addModifiableModuleMethod(componentImplementation, method, annotation)); in create() 120 setConfigureInitializationMethod(componentImplementation, method, annotation)); in create() 124 addChildImplementation(component, componentImplementation, nestedType); in create() 127 return componentImplementation; in create() 138 ComponentImplementation componentImplementation, in addModifiableBindingMethod() argument 154 componentImplementation.addModifiableBindingMethod( in addModifiableBindingMethod() [all …]
|
D | MultibindingExpression.java | 34 private final ComponentImplementation componentImplementation; field in MultibindingExpression 37 ResolvedBindings resolvedBindings, ComponentImplementation componentImplementation) { in MultibindingExpression() argument 39 this.componentImplementation = componentImplementation; in MultibindingExpression() 46 componentImplementation.registerImplementedMultibinding(binding, bindingRequest()); in getDependencyExpression() 76 if (componentImplementation.superclassImplementation().isPresent()) { in superMethodCall() 78 componentImplementation.getModifiableBindingMethod(bindingRequest()); in superMethodCall() 93 return componentImplementation.superclassContributionsMade(bindingRequest()); in superclassContributions()
|
D | PrivateMethodBindingExpression.java | 35 private final ComponentImplementation componentImplementation; field in PrivateMethodBindingExpression 43 ComponentImplementation componentImplementation, in PrivateMethodBindingExpression() argument 50 componentImplementation, in PrivateMethodBindingExpression() 53 this.componentImplementation = checkNotNull(componentImplementation); in PrivateMethodBindingExpression() 60 methodName = componentImplementation.getUniqueMethodName(request); in addMethod() 62 componentImplementation.addMethod( in addMethod()
|
D | MultibindingFactoryCreationExpression.java | 34 private final ComponentImplementation componentImplementation; field in MultibindingFactoryCreationExpression 40 ComponentImplementation componentImplementation, in MultibindingFactoryCreationExpression() argument 43 this.componentImplementation = checkNotNull(componentImplementation); in MultibindingFactoryCreationExpression() 53 componentImplementation.name()) in multibindingDependencyExpression() 63 componentImplementation.superclassContributionsMade(bindingRequest()); in dependenciesToImplement() 74 componentImplementation.getModifiableBindingMethod(bindingRequest()).get(); in superContributions() 88 return !componentImplementation.isTypeAccessible(binding.key().type()); in useRawType()
|
D | MethodBindingExpression.java | 47 private final ComponentImplementation componentImplementation; field in MethodBindingExpression 57 ComponentImplementation componentImplementation, in MethodBindingExpression() argument 64 this.componentImplementation = checkNotNull(componentImplementation); in MethodBindingExpression() 85 requestingClass.equals(componentImplementation.name()) in getDependencyExpression() 87 : CodeBlock.of("$T.this.$N()", componentImplementation.name(), methodName())); in getDependencyExpression() 109 return componentImplementation.supertypeModifiableBindingMethod(request); in supertypeModifiableBindingMethod() 138 wrappedBindingExpression.getDependencyExpression(componentImplementation.name()) in methodBody() 147 componentMethod, componentImplementation) in methodBodyForComponentMethod() 189 : types.accessibleType(requestedType, componentImplementation.name()); in returnType() 193 return componentImplementation.componentDescriptor().firstMatchingComponentMethod(request); in matchingComponentMethod() [all …]
|
D | MissingBindingExpression.java | 32 private final ComponentImplementation componentImplementation; field in MissingBindingExpression 36 ComponentImplementation componentImplementation, in MissingBindingExpression() argument 42 componentImplementation, in MissingBindingExpression() 48 this.componentImplementation = componentImplementation; in MissingBindingExpression() 54 return componentImplementation.getUniqueMethodName(request); in chooseMethodName()
|
D | DeferredModifiableBindingExpression.java | 42 private final ComponentImplementation componentImplementation; field in DeferredModifiableBindingExpression 47 ComponentImplementation componentImplementation, in DeferredModifiableBindingExpression() argument 55 componentImplementation, in DeferredModifiableBindingExpression() 61 this.componentImplementation = checkNotNull(componentImplementation); in DeferredModifiableBindingExpression() 68 return componentImplementation.getUniqueMethodName(request); in chooseMethodName()
|
D | ModifiableConcreteMethodBindingExpression.java | 38 private final ComponentImplementation componentImplementation; field in ModifiableConcreteMethodBindingExpression 48 ComponentImplementation componentImplementation, in ModifiableConcreteMethodBindingExpression() argument 56 componentImplementation, in ModifiableConcreteMethodBindingExpression() 60 this.componentImplementation = checkNotNull(componentImplementation); in ModifiableConcreteMethodBindingExpression() 76 methodName = Optional.of(componentImplementation.getUniqueMethodName(request)); in addMethod() 77 componentImplementation.addModifiableBindingMethod( in addMethod()
|
D | MapFactoryCreationExpression.java | 35 private final ComponentImplementation componentImplementation; field in MapFactoryCreationExpression 42 ComponentImplementation componentImplementation, in MapFactoryCreationExpression() argument 46 super(binding, componentImplementation, componentBindingExpressions); in MapFactoryCreationExpression() 48 this.componentImplementation = checkNotNull(componentImplementation); in MapFactoryCreationExpression() 81 getMapKeyExpression(contributionBinding, componentImplementation.name(), elements), in creationExpression() 86 componentImplementation.registerImplementedMultibinding(binding, bindingRequest()); in creationExpression()
|
D | MembersInjectionMethods.java | 46 private final ComponentImplementation componentImplementation; field in MembersInjectionMethods 53 ComponentImplementation componentImplementation, in MembersInjectionMethods() argument 58 this.componentImplementation = checkNotNull(componentImplementation); in MembersInjectionMethods() 79 isTypeAccessibleFrom(keyType, componentImplementation.name().packageName()) in membersInjectionMethod() 86 String methodName = componentImplementation.getUniqueMethodName("inject" + bindingTypeName); in membersInjectionMethod() 102 componentImplementation.name(), in membersInjectionMethod() 108 .getDependencyArgumentExpression(request, componentImplementation.name()) in membersInjectionMethod() 114 componentImplementation.addMethod(MEMBERS_INJECTION_METHOD, method); in membersInjectionMethod()
|
D | ComponentMethodBindingExpression.java | 34 private final ComponentImplementation componentImplementation; field in ComponentMethodBindingExpression 42 ComponentImplementation componentImplementation, in ComponentMethodBindingExpression() argument 50 componentImplementation, in ComponentMethodBindingExpression() 52 this.componentImplementation = checkNotNull(componentImplementation); in ComponentMethodBindingExpression() 68 return componentMethod.equals(this.componentMethod) && component.equals(componentImplementation) in getComponentMethodImplementation()
|
D | ModifiableAbstractMethodBindingExpression.java | 42 private final ComponentImplementation componentImplementation; field in ModifiableAbstractMethodBindingExpression 50 ComponentImplementation componentImplementation, in ModifiableAbstractMethodBindingExpression() argument 56 this.componentImplementation = componentImplementation; in ModifiableAbstractMethodBindingExpression() 87 componentImplementation.name().equals(requestingClass) in getDependencyExpression() 89 : CodeBlock.of("$T.this.$N()", componentImplementation.name(), methodName.get())); in getDependencyExpression() 97 componentImplementation.addModifiableBindingMethod( in addUnimplementedMethod()
|
D | OptionalFactoryInstanceCreationExpression.java | 33 private final ComponentImplementation componentImplementation; field in OptionalFactoryInstanceCreationExpression 39 ComponentImplementation componentImplementation, in OptionalFactoryInstanceCreationExpression() argument 43 this.componentImplementation = componentImplementation; in OptionalFactoryInstanceCreationExpression() 57 componentImplementation.name()) in creationExpression()
|
D | DelegatingFrameworkInstanceCreationExpression.java | 33 private final ComponentImplementation componentImplementation; field in DelegatingFrameworkInstanceCreationExpression 38 ComponentImplementation componentImplementation, in DelegatingFrameworkInstanceCreationExpression() argument 41 this.componentImplementation = checkNotNull(componentImplementation); in DelegatingFrameworkInstanceCreationExpression() 52 componentImplementation.name()) in creationExpression()
|
D | SetFactoryCreationExpression.java | 30 private final ComponentImplementation componentImplementation; field in SetFactoryCreationExpression 36 ComponentImplementation componentImplementation, in SetFactoryCreationExpression() argument 39 super(binding, componentImplementation, componentBindingExpressions); in SetFactoryCreationExpression() 41 this.componentImplementation = checkNotNull(componentImplementation); in SetFactoryCreationExpression() 99 componentImplementation.registerImplementedMultibinding(binding, bindingRequest()); in creationExpression()
|
D | ProducerFromProviderCreationExpression.java | 33 private final ComponentImplementation componentImplementation; field in ProducerFromProviderCreationExpression 38 ComponentImplementation componentImplementation, in ProducerFromProviderCreationExpression() argument 41 this.componentImplementation = checkNotNull(componentImplementation); in ProducerFromProviderCreationExpression() 52 componentImplementation.name()) in creationExpression()
|
D | ProducerNodeInstanceBindingExpression.java | 31 private final ComponentImplementation componentImplementation; field in ProducerNodeInstanceBindingExpression 40 ComponentImplementation componentImplementation) { in ProducerNodeInstanceBindingExpression() argument 42 this.componentImplementation = checkNotNull(componentImplementation); in ProducerNodeInstanceBindingExpression() 55 componentImplementation.addCancellableProducerKey(key); in getDependencyExpression()
|
D | DependencyMethodProviderCreationExpression.java | 46 private final ComponentImplementation componentImplementation; field in DependencyMethodProviderCreationExpression 54 ComponentImplementation componentImplementation, in DependencyMethodProviderCreationExpression() argument 59 this.componentImplementation = checkNotNull(componentImplementation); in DependencyMethodProviderCreationExpression() 90 componentImplementation.addType( in creationExpression() 107 dependency(), componentImplementation.name())); in creationExpression() 115 return componentImplementation.name().nestedClass(factoryName); in factoryClassName()
|
D | DependencyMethodProducerCreationExpression.java | 43 private final ComponentImplementation componentImplementation; field in DependencyMethodProducerCreationExpression 49 ComponentImplementation componentImplementation, in DependencyMethodProducerCreationExpression() argument 53 this.componentImplementation = checkNotNull(componentImplementation); in DependencyMethodProducerCreationExpression() 76 componentImplementation.name().nestedClass("Anonymous"))) in creationExpression()
|