Dotty Documentation

0.14.0-bin-SNAPSHOT

class ScriptEngine
extends AbstractScriptEngine

A JSR 223 (Scripting API) compatible wrapper around the REPL for improved interoperability with software that supports it.

It works by instantiating a new script engine through the script engine manager. The script engine provides a eval method to evaluate scripts in string form. Example use:

val m = new javax.script.ScriptEngineManager() val e = m.getEngineByName("scala") println(e.eval("42"))

[-] Constructors

ScriptEngine ( )

[-] Members

[+] private val driver : ReplDriver
[+] private val rendering : Rendering
[+] private var state : State
[+] def createBindings : Bindings
[+] @throws def eval ( script: String , context: ScriptContext ) : Object
[+] @throws def eval ( reader: Reader , context: ScriptContext ) : Object
[+] def getFactory : ScriptEngineFactory