Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FILE])
annotation class CompilerArgs(val values: String)

Describes compilation arguments used for the compilation of this and all following snippets

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FILE])
annotation class DependsOn(val value: String = "")

Describes the dependency

Link copied to clipboard
Link copied to clipboard
class KotlinContext(variables: HashMap<String, KotlinVariableInfo> = HashMap(), functions: HashMap<String, KotlinFunctionInfo> = HashMap())

Kotlin REPL has built-in context for getting user-declared functions and variables and setting invokeWrapper for additional side effects in evaluation. It can be accessed inside REPL by name kc, e.g. kc.showVars()

Link copied to clipboard
class KotlinFunctionInfo(val function: KFunction<*>, val line: Any) : Comparable<KotlinFunctionInfo>
Link copied to clipboard
class KotlinVariableInfo(val value: Any?, val kotlinProperty: KProperty<*>?, val javaField: Field, val line: Any)
Link copied to clipboard
sealed class Modificator
Link copied to clipboard
data class ModifiedList<T>(val source: List<T>, val modificator: Modificator) : List<T>
Link copied to clipboard
object Native
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FILE])
annotation class Repository(val value: String = "", val username: String = "", val password: String = "")

Describes the repository which is used for dependency resolution

Link copied to clipboard
abstract class ScriptTemplateWithDisplayHelpers(val userHandlesProvider: UserHandlesProvider)

Properties

Functions

Link copied to clipboard
fun <T, R> List<T>.addColumn(name: String, value: T.() -> R): ModifiedList<T>
Link copied to clipboard
fun ScriptTemplateWithDisplayHelpers.ANIMATE(framesCount: Int, frameByIndex: (index: Int) -> Frame<*>)
fun ScriptTemplateWithDisplayHelpers.ANIMATE(delay: Duration, nextValue: () -> Any?)
fun <T> ScriptTemplateWithDisplayHelpers.ANIMATE(firstFrame: Frame<T>, nextFrame: (Frame<T>) -> Frame<T>?)
fun <T : Any> ScriptTemplateWithDisplayHelpers.ANIMATE(delay: Duration, firstValue: T?, nextValue: (T) -> T?)
fun ScriptTemplateWithDisplayHelpers.ANIMATE(delay: Duration, framesCount: Int, valueByIndex: (index: Int) -> Any?)
Link copied to clipboard
fun clearIvyCache(group: String)
fun clearIvyCache(group: String, artifact: String)
fun clearIvyCache(group: String, artifact: String, version: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ScriptTemplateWithDisplayHelpers.loadLibraryDescriptor(descriptorText: String, options: Map<String, String> = emptyMap())
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard