Searched refs:constructorElement (Results 1 – 6 of 6) sorted by relevance
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | InjectValidator.java | 134 public ValidationReport<TypeElement> validateConstructor(ExecutableElement constructorElement) { in validateConstructor() argument 135 return reentrantComputeIfAbsent(reports, constructorElement, this::validateConstructorUncached); in validateConstructor() 139 ExecutableElement constructorElement) { in validateConstructorUncached() argument 141 ValidationReport.about(asType(constructorElement.getEnclosingElement())); in validateConstructorUncached() 143 if (isAnnotationPresent(constructorElement, Inject.class) in validateConstructorUncached() 144 && isAnnotationPresent(constructorElement, AssistedInject.class)) { in validateConstructorUncached() 149 isAnnotationPresent(constructorElement, Inject.class) ? Inject.class : AssistedInject.class; in validateConstructorUncached() 151 if (constructorElement.getModifiers().contains(PRIVATE)) { in validateConstructorUncached() 153 "Dagger does not support injection into private constructors", constructorElement); in validateConstructorUncached() 156 for (AnnotationMirror qualifier : injectionAnnotations.getQualifiers(constructorElement)) { in validateConstructorUncached() [all …]
|
D | InjectBindingRegistryImpl.java | 239 public Optional<ProvisionBinding> tryRegisterConstructor(ExecutableElement constructorElement) { in tryRegisterConstructor() argument 240 return tryRegisterConstructor(constructorElement, Optional.empty(), false); in tryRegisterConstructor() 245 ExecutableElement constructorElement, in tryRegisterConstructor() argument 248 TypeElement typeElement = MoreElements.asType(constructorElement.getEnclosingElement()); in tryRegisterConstructor() 256 ValidationReport<TypeElement> report = injectValidator.validateConstructor(constructorElement); in tryRegisterConstructor() 259 ProvisionBinding binding = bindingFactory.injectionBinding(constructorElement, resolvedType); in tryRegisterConstructor()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/ |
D | ViewGenerator.java | 91 private boolean isConstructorVisibleToGeneratedClass(ExecutableElement constructorElement) { in isConstructorVisibleToGeneratedClass() argument 92 if (Visibility.ofElement(constructorElement) == Visibility.DEFAULT in isConstructorVisibleToGeneratedClass() 93 && !isInOurPackage(constructorElement)) { in isConstructorVisibleToGeneratedClass() 95 } else if (Visibility.ofElement(constructorElement) == Visibility.PRIVATE) { in isConstructorVisibleToGeneratedClass() 116 private MethodSpec constructorMethod(ExecutableElement constructorElement) { in constructorMethod() argument 118 Generators.copyConstructor(constructorElement).toBuilder(); in constructorMethod() 120 if (isRestrictedApiConstructor(constructorElement)) { in constructorMethod() 190 private boolean isInOurPackage(ExecutableElement constructorElement) { in isInOurPackage() argument 191 return MoreElements.getPackage(constructorElement) in isInOurPackage()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | BindingFactory.java | 120 ExecutableElement constructorElement, Optional<TypeMirror> resolvedType) { in injectionBinding() argument 121 checkArgument(constructorElement.getKind().equals(CONSTRUCTOR)); in injectionBinding() 123 isAnnotationPresent(constructorElement, Inject.class) in injectionBinding() 124 || isAnnotationPresent(constructorElement, AssistedInject.class)); in injectionBinding() 125 checkArgument(!injectionAnnotations.getQualifier(constructorElement).isPresent()); in injectionBinding() 127 ExecutableType constructorType = MoreTypes.asExecutable(constructorElement.asType()); in injectionBinding() 129 MoreTypes.asDeclared(constructorElement.getEnclosingElement().asType()); in injectionBinding() 139 constructorType = MoreTypes.asExecutable(types.asMemberOf(resolved, constructorElement)); in injectionBinding() 146 for (int i = 0; i < constructorElement.getParameters().size(); i++) { in injectionBinding() 147 VariableElement parameter = constructorElement.getParameters().get(i); in injectionBinding() [all …]
|
D | InjectBindingRegistry.java | 56 Optional<ProvisionBinding> tryRegisterConstructor(ExecutableElement constructorElement); in tryRegisterConstructor() argument
|
/external/dagger2/java/dagger/internal/codegen/ |
D | InjectProcessingStep.java | 50 ExecutableElement constructorElement, Void aVoid) { in InjectProcessingStep() 51 injectBindingRegistry.tryRegisterConstructor(constructorElement); in InjectProcessingStep()
|