KotlinSourceFileContribution

data class KotlinSourceFileContribution(val packageName: String, val sourcePackageName: String, val sourceFile: String, val aggregateInterfaceName: String, val nestedInterfaceName: String, val imports: Set<String> = emptySet(), val endpointMembers: List<KotlinEndpointMemberContribution>, val topLevelDeclarations: List<String> = emptyList())(source)

Integration-specific content for one generated Kotlin source file.

Constructors

Link copied to clipboard
constructor(packageName: String, sourcePackageName: String, sourceFile: String, aggregateInterfaceName: String, nestedInterfaceName: String, imports: Set<String> = emptySet(), endpointMembers: List<KotlinEndpointMemberContribution>, topLevelDeclarations: List<String> = emptyList())

Properties

Link copied to clipboard

generated aggregate interface name for the source file.

Link copied to clipboard

integration-specific nested members keyed by endpoint property name.

Link copied to clipboard

imports requested by the contributing generator.

Link copied to clipboard

nested integration interface name exposed by each endpoint contract.

Link copied to clipboard

package of the generated Kotlin source file.

Link copied to clipboard

original endpoint source file name.

Link copied to clipboard

original package containing the source endpoint declarations.

Link copied to clipboard

additional top-level Kotlin declarations emitted into the merged file.