Package de. jensklingenberg. ktorfit. generator
Types
Link copied to clipboard
data class KtorfitClass( val name: String, val packageName: String, val objectName: String)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
fun TypeSpec.Builder.addKtorfitSuperInterface(superClasses: List<String>): TypeSpec.Builder
Content copied to clipboard
Support for extending multiple interfaces, is done with Kotlin delegation. Ktorfit interfaces can only extend other Ktorfit interfaces, so there will be a generated implementation for each interface that we can use.
Link copied to clipboard
fun generateImplClass(classDataList: List<ClassData>, codeGenerator: CodeGenerator)
Content copied to clipboard
Generate the Impl class for every interface used for Ktorfit
Link copied to clipboard
fun generateKtorfitExtClass( classDataList: List<ClassData>, isJS: Boolean = false, codeGenerator: CodeGenerator)
Content copied to clipboard
This will generate the Ktorfit.create() extension function
Link copied to clipboard
Transform a ClassData to a FileSpec for KotlinPoet
Link copied to clipboard