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

org.jetbrains.kotlinx.jupyter.api.AnnotationsHandling.kt Maven / Gradle / Ivy

There is a newer version: 0.12.0-335
Show newest version
package org.jetbrains.kotlinx.jupyter.api

import kotlin.reflect.KClass

/**
 * Callback to handle new class or interface declarations in executed snippets
 */
typealias ClassDeclarationsCallback = KotlinKernelHost.(List>) -> Unit

/**
 * Annotation handler used to hook class declarations with specific annotations
 */
class ClassAnnotationHandler(val annotation: KClass, val callback: ClassDeclarationsCallback)

typealias ExecutionCallback = KotlinKernelHost.() -> T

typealias AfterCellExecutionCallback = KotlinKernelHost.(snippetInstance: Any, result: FieldValue) -> Unit

typealias InterruptionCallback = KotlinKernelHost.() -> Unit

typealias FileAnnotationCallback = KotlinKernelHost.(List) -> Unit

class FileAnnotationHandler(val annotation: KClass, val callback: FileAnnotationCallback)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy