toTypeSpec

fun KClass<*>.toTypeSpec(lenient: Boolean, classInspector: ClassInspector? = null): TypeSpec
fun Class<*>.toTypeSpec(lenient: Boolean, classInspector: ClassInspector? = null): TypeSpec

Return

a TypeSpec ABI representation of this KClass.

Parameters

lenient

see docs on KotlinClassMetadata.readStrict and KotlinClassMetadata.readLenient for more details.


fun TypeElement.toTypeSpec(lenient: Boolean, classInspector: ClassInspector? = null): TypeSpec

Return

a TypeSpec ABI representation of this TypeElement.

Parameters

lenient

see docs on KotlinClassMetadata.readStrict and KotlinClassMetadata.readLenient for more details.


fun KmClass.toTypeSpec(classInspector: ClassInspector?, className: ClassName = createClassName(name)): TypeSpec

Return

a TypeSpec ABI representation of this KmClass.