All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.dataframe.codeGen.ReplCodeGenerator.kt Maven / Gradle / Ivy

package org.jetbrains.dataframe.impl.codeGen

import org.jetbrains.kotlinx.dataframe.AnyFrame
import org.jetbrains.kotlinx.dataframe.AnyRow
import org.jetbrains.kotlinx.dataframe.codeGen.CodeWithConverter
import org.jetbrains.kotlinx.dataframe.impl.codeGen.ReplCodeGeneratorImpl
import org.jetbrains.kotlinx.jupyter.api.Code
import kotlin.reflect.KClass
import kotlin.reflect.KProperty

internal interface ReplCodeGenerator {

    fun process(df: AnyFrame, property: KProperty<*>? = null): CodeWithConverter

    fun process(row: AnyRow, property: KProperty<*>? = null): CodeWithConverter

    fun process(markerClass: KClass<*>): Code

    companion object {
        fun create(): ReplCodeGenerator = ReplCodeGeneratorImpl()
    }
}

internal inline fun  ReplCodeGenerator.process(): Code = process(T::class)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy