Repl

ammonite.repl.Repl
See theRepl companion object
class Repl(input: InputStream, output: OutputStream, error: OutputStream, storage: Storage, baseImports: Imports, basePredefs: Seq[PredefInfo], customPredefs: Seq[PredefInfo], wd: Path, welcomeBanner: Option[String], replArgs: IndexedSeq[Bind[_]], initialColors: Colors, replCodeWrapper: CodeWrapper, scriptCodeWrapper: CodeWrapper, alreadyLoadedDependencies: Seq[Dependency], importHooks: Map[Seq[String], ImportHook], compilerBuilder: CompilerBuilder, parser: Parser, initialClassLoader: ClassLoader, classPathWhitelist: Set[Seq[String]], warnings: Boolean)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def action(): Res[Evaluated]
def beforeExit(exitValue: Any): Any
def fullImports: Imports
def imports: Imports
def initializePredef(): Option[(Failing, Seq[(Watchable, Long)])]
def run(): Any
def usedEarlierDefinitions: Seq[String]
def warmup(): Res[Evaluated]

Concrete fields

val argString: String
val bridges: Seq[(String, String, ReplApiImpl { Unsupported[Not supported type in refinement AndType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class repl)),object api),ReplLoad),AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class )),object scala),Function1),List(TypeRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix,module class )),object scala),Predef),String), TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class )),object scala),Unit))))]; } | FrontEndAPIImpl)]
val colors: Ref[Colors]
var currentLine: Int

The current line number of the REPL, used to make sure every snippet evaluated can have a distinct name that doesn't collide.

The current line number of the REPL, used to make sure every snippet evaluated can have a distinct name that doesn't collide.

Attributes

val frames: Ref[List[Frame]]
val frontEnd: Ref[FrontEnd]
var history: History
val interp: Interpreter
val interpParams: Parameters
var lastException: Throwable
val printer: Printer
val prompt: Ref[String]
val reader: InputStreamReader