ConfigBuilder

de.sciss.scalainterpreter.Interpreter$.ConfigBuilder
See theConfigBuilder companion object

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

Abstract fields

var bindings: Seq[(String, Any)]

A list of bindings which make objects in the hosting environment available to the interpreter under a given name.

A list of bindings which make objects in the hosting environment available to the interpreter under a given name.

Attributes

var executor: String

An injected code fragment which precedes the evaluation of the each interpreted line's wrapping object.

An injected code fragment which precedes the evaluation of the each interpreted line's wrapping object.

For example if the interpreted code was val foo = 33, the actually compiled code looks like

 val res = <execution> { object <synthetic> { val foo = 33 }}

The executor can be used for example to set a particular context needed during the evaluation of the object's body. Then most probably it will be defined to take a thunk argument, for instance:

 object MyExecutor { def apply[A](thunk: => A): A = concurrent.stm.atomic(_ => thunk)
 config.executor = "MyExecutor"

Then the evaluated code may find the STM transaction using Txn.findCurrent

Attributes

var imports: Seq[String]

A list of package names to import to the scope of the interpreter.

A list of package names to import to the scope of the interpreter.

Attributes

var out: Option[Writer]

The interpreter's output printing device.

The interpreter's output printing device.

Attributes

var quietImports: Boolean

Whether initial imports should be performed silently (true) or not (false). Not silent means the imported packages' names will be printed to the default printing device (out).

Whether initial imports should be performed silently (true) or not (false). Not silent means the imported packages' names will be printed to the default printing device (out).

Attributes

Implicits

Inherited implicits

implicit def build(b: ConfigBuilder): Config

Attributes

Inherited from:
ConfigLike