ammonite

util

package util

Visibility
  1. Public
  2. All

Type Members

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

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

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

  3. trait CodeColors extends AnyRef

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

  5. class CompilationError extends Exception

    Exception for reporting script compilation failures

  6. case class Evaluated(wrapper: Seq[Name], imports: Imports) extends Product with Serializable

  7. case class ImportData(fromName: Name, toName: Name, prefix: Seq[Name], importType: ImportType) extends Product with Serializable

    Represents the importing of a single name in the Ammonite REPL, of the form

  8. case class ImportHookInfo(imports: Imports, stmts: Seq[String], trees: Seq[ImportTree]) extends Product with Serializable

  9. case class ImportTree(prefix: Seq[String], mappings: Option[ImportMapping], start: Int, end: Int) extends Product with Serializable

  10. class Imports extends AnyRef

    Represents the imports that occur before a piece of user code in the Ammonite REPL.

  11. case class Name(raw: String) extends Product with Serializable

    Represents a single identifier in Scala source code, e.

  12. case class PredefInfo(name: Name, code: String, hardcoded: Boolean, path: Option[Path]) extends Product with Serializable

    Information about a particular predef file or snippet.

  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. sealed abstract class Res[+T] extends AnyRef

    The result of a single pass through the ammonite REPL.

  16. case class ScriptOutput(processed: Metadata, classFiles: Seq[ClassFiles]) extends Product with Serializable

    The serialized output of running a script, including both metadata and the classfile binaries

  17. trait StableRef[T] extends AnyRef

    Encapsulates a read-write cell that can be passed around

  18. case class Tag(code: String, env: String) extends Product with Serializable

    A unique key for a piece of code that gets run in a particular environment; contains the hash of the code and the hash of the environment stored separately, so you can e.

Value Members

  1. object Bind extends Serializable

  2. object Colors extends Serializable

  3. object Ex

    Nice pattern matching for chained exceptions

  4. object ImportData extends Serializable

  5. object ImportTree extends Serializable

  6. object Imports

  7. object Name extends Serializable

  8. object Ref

  9. object Res

  10. object ScriptOutput extends Serializable

  11. object Util

Ungrouped