ammonite.compiler.iface

Members list

Type members

Classlikes

abstract class CodeWrapper

Attributes

Supertypes
class Object
trait Matchable
class Any
abstract class Compiler

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Compiler

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Compiler.type
abstract class CompilerBuilder

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class CompilerLifecycleManager

Attributes

Supertypes
class Object
trait Matchable
class Any
abstract class Parser

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Parser

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Parser.type
abstract class Preprocessor

Responsible for all scala-source-code-munging that happens within the Ammonite REPL.

Responsible for all scala-source-code-munging that happens within the Ammonite REPL.

Performs several tasks:

  • Takes top-level Scala expressions and assigns them to res{1, 2, 3, ...} values so they can be accessed later in the REPL

  • Wraps the code snippet with an wrapper object since Scala doesn't allow top-level expressions

  • Mangles imports from our ammonite.util.ImportData data structure into a source String

  • Combines all of these into a complete compilation unit ready to feed into the Scala compiler

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Preprocessor

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type