Home
last modified time | relevance | path

Searched refs:OptionalKind (Results 1 – 3 of 3) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/base/
DOptionalType.java46 public enum OptionalKind { enum in OptionalType
57 OptionalKind(Class<?> clazz, String absentFactoryMethodName) { in OptionalKind() method in OptionalType.OptionalKind
93 private static final TypeVisitor<Optional<OptionalKind>, Void> OPTIONAL_KIND =
94 new SimpleTypeVisitor8<Optional<OptionalKind>, Void>(Optional.empty()) {
96 public Optional<OptionalKind> visitDeclared(DeclaredType t, Void p) {
97 for (OptionalKind optionalKind : OptionalKind.values()) {
122 public OptionalKind kind() { in kind()
/external/dagger2/java/dagger/internal/codegen/writing/
DOptionalFactories.java59 import dagger.internal.codegen.base.OptionalType.OptionalKind;
102 private final Map<OptionalKind, MethodSpec> absentOptionalProviderMethods = new TreeMap<>();
107 private final Map<OptionalKind, FieldSpec> absentOptionalProviderFields = new TreeMap<>();
118 OptionalKind optionalKind = OptionalType.from(binding.key()).kind(); in absentOptionalProvider()
134 private MethodSpec absentOptionalProviderMethod(OptionalKind optionalKind) { in absentOptionalProviderMethod()
165 private FieldSpec absentOptionalProviderField(OptionalKind optionalKind) {
188 abstract OptionalKind optionalKind();
423 OptionalKind optionalKind, TypeName inputType, CodeBlock inputFuture) {
DOptionalBindingExpression.java26 import dagger.internal.codegen.base.OptionalType.OptionalKind;
57 OptionalKind optionalKind = optionalType.kind(); in getDependencyExpression()