Home
last modified time | relevance | path

Searched refs:optionalType (Results 1 – 4 of 4) sorted by relevance

/external/auto/value/src/main/java/com/google/auto/value/processor/
DOptionalish.java45 private final DeclaredType optionalType; field in Optionalish
48 private Optionalish(DeclaredType optionalType) { in Optionalish() argument
49 this.optionalType = optionalType; in Optionalish()
50 this.className = MoreElements.asType(optionalType.asElement()).getQualifiedName().toString(); in Optionalish()
82 return TypeEncoder.encodeRaw(optionalType); in getRawType()
95 return TypeEncoder.encodeRaw(optionalType) + empty; in getEmpty()
99 List<? extends TypeMirror> typeArguments = optionalType.getTypeArguments(); in getContainedType()
106 throw new AssertionError("Wrong number of type arguments: " + optionalType); in getContainedType()
121 String simpleName = optionalType.asElement().getSimpleName().toString(); in getContainedPrimitiveType()
123 Verify.verifyNotNull(typeKind, "Could not get contained type of %s", optionalType); in getContainedPrimitiveType()
/external/dagger2/java/dagger/internal/codegen/writing/
DOptionalBindingExpression.java56 OptionalType optionalType = OptionalType.from(binding.key()); in getDependencyExpression() local
57 OptionalKind optionalKind = optionalType.kind(); in getDependencyExpression()
67 binding.key().type(), optionalKind.parameterizedAbsentValueExpression(optionalType)); in getDependencyExpression()
DOptionalFactories.java204 ParameterizedTypeName optionalType() {
210 return frameworkType().frameworkClassOf(optionalType());
229 return Optional.of(abstractProducerOf(optionalType()));
361 .returns(spec.optionalType())
371 getMethodBuilder.returns(listenableFutureOf(spec.optionalType()));
/external/dagger2/java/dagger/internal/codegen/base/
DOptionalType.java75 public CodeBlock parameterizedAbsentValueExpression(OptionalType optionalType) { in parameterizedAbsentValueExpression() argument
76 return CodeBlock.of("$T.<$T>$L()", clazz, optionalType.valueType(), absentFactoryMethodName); in parameterizedAbsentValueExpression()