ClassData

data class ClassData(val name: String, val packageName: String, val functions: List<FunctionData>, val imports: List<String>, val superClasses: List<KSTypeReference> = emptyList(), val properties: List<KSPropertyDeclaration> = emptyList(), val modifiers: List<KModifier> = emptyList(), val ksFile: KSFile)

Parameters

name

of the interface that contains annotations

superClasses

List of qualifiedNames of interface that a Ktorfit interface extends

Constructors

Link copied to clipboard
constructor(name: String, packageName: String, functions: List<FunctionData>, imports: List<String>, superClasses: List<KSTypeReference> = emptyList(), properties: List<KSPropertyDeclaration> = emptyList(), modifiers: List<KModifier> = emptyList(), ksFile: KSFile)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ksFile: KSFile
Link copied to clipboard
val modifiers: List<KModifier>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val properties: List<KSPropertyDeclaration>
Link copied to clipboard
val superClasses: List<KSTypeReference>

Functions

Link copied to clipboard
fun ClassData.getImplClassFileSource(resolver: Resolver): String

Transform a ClassData to a FileSpec for KotlinPoet