eval
fun eval(source: SourceCode, context: Map<String, Any?>, includes: List<Path> = emptyList()): ResultWithDiagnostics<EvaluationResult>
Evaluate the Kotlin source with the given context.
Return
The result of evaluation
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.
Return
Whatever the script returns, or null if there wasn't a value.
fun eval(script: String, context: Map<String, Any?> = emptyMap(), name: String? = null, includes: List<Path> = emptyList()): Any?
fun OutputPath.eval(script: String, context: Map<String, Any?> = emptyMap(), name: String? = null): Any?
Evaluate the Kotlin script string script with the given context.
Return
Whatever the script returns, or null if there wasn't a value.