Home
last modified time | relevance | path

Searched refs:nullableType (Results 1 – 11 of 11) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/binding/
DContributionBinding.java52 public abstract Optional<DeclaredType> nullableType(); in nullableType() method in ContributionBinding
75 return nullableType().isPresent(); in isNullable()
187 public abstract B nullableType(Optional<DeclaredType> nullableType); in nullableType() argument
DBindingFactory.java227 .nullableType(getNullableType(providesMethod)) in providesMethodBinding()
369 .nullableType(getNullableType(dependencyMethod)) in componentDependencyMethodBinding()
393 .nullableType(getNullableType(parameterElement)) in boundInstanceBinding()
446 ProductionBinding.builder().nullableType(actualBinding.nullableType()), in delegateBinding()
454 .nullableType(actualBinding.nullableType()), in delegateBinding()
DDependencyRequestFactory.java238 private boolean allowsNull(RequestKind kind, Optional<DeclaredType> nullableType) { in allowsNull() argument
239 return nullableType.isPresent() || !kind.equals(INSTANCE); in allowsNull()
DProvisionBinding.java96 && !nullableType().isPresent() in shouldCheckForNull()
DComponentRequirement.java240 binding.nullableType().isPresent(), in forBoundInstance()
/external/auto/factory/src/test/resources/expected/
DCheckerFrameworkNullableFactory.java39 @NullableDecl String nullableDecl, @NullableType String nullableType) { in create() argument
43 nullableType, in create()
/external/dagger2/java/dagger/internal/codegen/writing/
DDependencyMethodProviderCreationExpression.java92 if (binding.nullableType().isPresent()) { in creationExpression()
93 getMethod.addAnnotation(ClassName.get(MoreTypes.asTypeElement(binding.nullableType().get()))); in creationExpression()
DFactoryGenerator.java258 .nullableType() in getMethod()
259 .ifPresent(nullableType -> CodeBlocks.addAnnotation(getMethod, nullableType)); in getMethod()
DComponentBindingExpressions.java391 binding.nullableType().isPresent(), in instanceFactoryCreationExpression()
/external/dagger2/java/dagger/internal/codegen/javapoet/
DCodeBlocks.java80 public static void addAnnotation(MethodSpec.Builder method, DeclaredType nullableType) { in addAnnotation() argument
81 method.addAnnotation(ClassName.get(MoreTypes.asTypeElement(nullableType))); in addAnnotation()
/external/auto/factory/src/test/resources/good/
DCheckerFrameworkNullable.java29 @NullableType String nullableType, in CheckerFrameworkNullable() argument