Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FILE])
annotation class Import

Functions

Link copied to clipboard
fun eval(script: Path, context: Map<String, Any?> = emptyMap(), includes: List<Path> = emptyList()): Any?

Evaluate the Kotlin script file at script with the given context.

fun eval(source: SourceCode, context: Map<String, Any?>, includes: List<Path> = emptyList()): ResultWithDiagnostics<EvaluationResult>

Evaluate the Kotlin source with the given context.

fun eval(script: String, context: Map<String, Any?> = emptyMap(), name: String? = null, includes: List<Path> = emptyList()): Any?

Evaluate the Kotlin script string script with the given context.

Link copied to clipboard
fun OutputPath.eval(script: Path, context: Map<String, Any?> = emptyMap()): Any?

Evaluate the Kotlin script file at script with the given context.

fun OutputPath.eval(script: String, context: Map<String, Any?> = emptyMap(), name: String? = null): Any?

Evaluate the Kotlin script string script with the given context.