ammonite

repl

package repl

Visibility
  1. Public
  2. All

Type Members

  1. case class ArgParseException(name: String, value: String, typeName: String, cause: Throwable) extends Exception with Product with Serializable

  2. case class Bind[T](name: String, value: T)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]) extends Product with Serializable

    Models a binding of a value to a typed name, and is passed into the REPL so it can re-create the bindings inside the REPL's scope

  3. case class Catching(handler: PartialFunction[Throwable, Failing]) extends Product with Serializable

    Fake for-comprehension generator to catch errors and turn them into Res.Failures

  4. trait Cell[T] extends AnyRef

  5. trait CodeColors extends AnyRef

  6. case class Colors(prompt: Ref[Attrs], ident: Ref[Attrs], type: Ref[Attrs], literal: Ref[Attrs], prefix: Ref[Attrs], comment: Ref[Attrs], keyword: Ref[Attrs], selected: Ref[Attrs], error: Ref[Attrs], warning: Ref[Attrs]) extends Product with Serializable

    A set of colors used to highlight the miscellanious bits of the REPL.

  7. class CompilationError extends Exception

    Exception for reporting script compilation failures

  8. case class EntryConfig(file: Option[Path]) extends Product with Serializable

  9. case class Evaluated(wrapper: String, imports: Seq[ImportData]) extends Product with Serializable

  10. class History extends IndexedSeq[String] with IndexedSeqLike[String, History]

  11. case class ImportData(fromName: String, toName: String, prefix: String, importType: ImportType) extends Product with Serializable

  12. case class Main(predef: String = "", defaultPredef: Boolean = true, storageBackend: Storage = Storage.InMemory.apply(), wd: Path = ammonite.ops.`package`.cwd, welcomeBanner: Option[String] = ..., inputStream: InputStream = java.this.lang.System.in, outputStream: OutputStream = java.this.lang.System.out, errorStream: OutputStream = java.this.lang.System.err) extends Product with Serializable

    Contains the various entry points to the Ammonite REPL.

  13. case class Printer(out: (String) ⇒ Unit, warning: (String) ⇒ Unit, error: (String) ⇒ Unit, info: (String) ⇒ Unit) extends Product with Serializable

    Encapsulates the ways the Ammonite REPL prints things

  14. trait Ref[T] extends StableRef[T]

  15. class Repl extends AnyRef

  16. sealed abstract class Res[+T] extends AnyRef

    The result of a single pass through the ammonite REPL.

  17. trait StableRef[T] extends AnyRef

    Encapsulates a read-write cell that can be passed around

  18. trait Storage extends AnyRef

    Trait for the interface of common persistent storage.

Value Members

  1. object Bind extends Serializable

  2. object Cell

  3. object Colors extends Serializable

  4. object Ex

    Nice pattern matching for chained exceptions

  5. object History

  6. object ImportData extends Serializable

  7. object Main extends Serializable

  8. object Parsers

  9. object Ref

  10. object Repl

  11. object Res

  12. object ScriptInit

    Code used to de-serialize command-line arguments when calling an Ammonite script.

  13. object Storage

  14. object Timer

  15. object Util

  16. package frontend

    Everything to do with the interaction of the Ammonite REPL with the user and the terminal.

  17. package interp

    What actually lets us compile and execute code in the Ammonite REPL; deals with the Scala compiler, preprocessing the strings, JVM classloaders, etc.

  18. package tools

    Things that are available inside the Ammonite REPL, are really convenient to have available.

Ungrouped