ScriptResult

data class ScriptResult(val success: Boolean, val name: String?, val value: Any?, val typeName: String?, val error: String?) : Record(source)

The outcome of evaluating one snippet of Kotlin code.

Constructors

Link copied to clipboard
constructor(success: Boolean, name: String?, value: Any?, typeName: String?, error: String?)

Properties

Link copied to clipboard

the diagnostics produced on failure, or null.

Link copied to clipboard
val name: String?

the name of the generated result field. It is null when the snippet has no value, such as a declaration or a Unit expression.

Link copied to clipboard

whether the snippet compiled and evaluated without errors.

Link copied to clipboard

the declared type of value, or null.

Link copied to clipboard
val value: Any?

the value of the last expression, or null.