Config

trait Config extends ConfigLike

Configuration for an interpreter.

Configuration for an interpreter.

Companion
object
class Object
trait Matchable
class Any

Value members

Inherited methods

def 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.

Inherited from
ConfigLike
def 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

Inherited from
ConfigLike
def 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.

Inherited from
ConfigLike
def out: Option[Writer]

The interpreter's output printing device.

The interpreter's output printing device.

Inherited from
ConfigLike
def 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).

Inherited from
ConfigLike

Implicits

Inherited implicits

implicit def build(b: ConfigBuilder): Config
Inherited from
ConfigLike