dotty.tools.repl.ScriptEngine
See theScriptEngine companion object
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"))
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article