TypeReference

sealed class TypeReference

Inheritors

Types

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

For Map<String, Int> this will return `String`, `Int`. For star projections like List<*> the result will be mapped to Any.

Functions

Link copied to clipboard
Link copied to clipboard
fun asTypeName(): TypeName
Link copied to clipboard
fun asTypeNameOrNull(): TypeName?
Link copied to clipboard
abstract fun isFunctionType(): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun isNullable(): Boolean
Link copied to clipboard
fun resolveGenericTypeNameOrNull(implementingClass: ClassReference): TypeName?
Link copied to clipboard
abstract fun resolveGenericTypeOrNull(implementingClass: ClassReference): TypeReference?
Link copied to clipboard
open override fun toString(): String