Searched refs:optionalType (Results 1 – 4 of 4) sorted by relevance
45 private final DeclaredType optionalType; field in Optionalish48 private Optionalish(DeclaredType optionalType) { in Optionalish() argument49 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()
56 OptionalType optionalType = OptionalType.from(binding.key()); in getDependencyExpression() local57 OptionalKind optionalKind = optionalType.kind(); in getDependencyExpression()67 binding.key().type(), optionalKind.parameterizedAbsentValueExpression(optionalType)); in getDependencyExpression()
204 ParameterizedTypeName optionalType() {210 return frameworkType().frameworkClassOf(optionalType());229 return Optional.of(abstractProducerOf(optionalType()));361 .returns(spec.optionalType())371 getMethodBuilder.returns(listenableFutureOf(spec.optionalType()));
75 public CodeBlock parameterizedAbsentValueExpression(OptionalType optionalType) { in parameterizedAbsentValueExpression() argument76 return CodeBlock.of("$T.<$T>$L()", clazz, optionalType.valueType(), absentFactoryMethodName); in parameterizedAbsentValueExpression()