Package

ammonite

repl

Permalink

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

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

    Permalink

    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

    Permalink

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

  4. trait Cell[T] extends AnyRef

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

    Permalink

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

    A set of colors used to highlight the miscellanious bits of the REPL. Re-used all over the place in PPrint, TPrint, syntax highlighting, command-echoes, etc. in order to keep things consistent

    prompt

    The command prompt

    ident

    Definition of top-level identifiers

    literal

    Strings, integers and other literal expressions

    prefix

    The Seq/Foo when printing a Seq(...) or case class Foo(...)

    selected

    The color of text selected in the line-editor

    error

    The color used to print error messages of all kinds

    reset

    Whatever is necessary to get rid of residual coloring

  6. class CompilationError extends Exception

    Permalink

    Exception for reporting script compilation failures

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

    Permalink
  8. class History extends IndexedSeq[String] with IndexedSeqLike[String, History]

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

    Permalink
  10. trait IvyConstructor extends AnyRef

    Permalink
  11. case class IvyThing(resolvers: () ⇒ List[Resolver]) extends Product with Serializable

    Permalink

    Resolve artifacts from Ivy.

    Resolve artifacts from Ivy. Originally taken from

    http://makandracards.com/evgeny-goldin/5817-calling-ivy-from-groovy-or-java

    And transliterated into Scala. I have no idea how or why it works.

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

    Permalink

    Encapsulates the ways the Ammonite REPL prints things

    Encapsulates the ways the Ammonite REPL prints things

    out

    How you want it to print streaming fragments of stdout

    warning

    How you want it to print a complete warning

    error

    How you want it to print a complete error

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

    Permalink
  14. class Repl extends AnyRef

    Permalink
  15. sealed abstract class Res[+T] extends AnyRef

    Permalink

    The result of a single pass through the ammonite REPL.

  16. sealed trait Resolver extends AnyRef

    Permalink

    A thin wrapper around RepositoryResolver, which wraps them and provides hashability in order to set the cache tags.

    A thin wrapper around RepositoryResolver, which wraps them and provides hashability in order to set the cache tags. This lets us invalidate the ivy resolution cache if the set of resolvers changes

  17. trait Resolvers extends AnyRef

    Permalink
  18. trait StableRef[T] extends AnyRef

    Permalink

    Encapsulates a read-write cell that can be passed around

  19. trait Storage extends AnyRef

    Permalink

    Trait for the interface of common persistent storage.

    Trait for the interface of common persistent storage. This handles history and persistent caches. Right now it is not threadsafe nor does it handle the mutual exclusion of files between processes. Mutexes should be added to be able to run multiple Ammonite processes on the same system.

Value Members

  1. object Bind extends Serializable

    Permalink
  2. object Cell

    Permalink
  3. object Colors extends Serializable

    Permalink
  4. object Ex

    Permalink

    Nice pattern matching for chained exceptions

  5. object History

    Permalink
  6. object ImportData extends Serializable

    Permalink
  7. object IvyConstructor extends IvyConstructor

    Permalink
  8. object IvyThing extends Serializable

    Permalink
  9. object Main

    Permalink

    The various entry-points to the Ammonite repl

  10. object Parsers

    Permalink
  11. object Ref

    Permalink
  12. object Repl

    Permalink
  13. object Res

    Permalink
  14. object Resolver

    Permalink
  15. object Resolvers

    Permalink
  16. object ScriptInit

    Permalink

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

    Code used to de-serialize command-line arguments when calling an Ammonite script. Basically looks for a scopt.Read for the type of each argument and uses that to de-serialize the given String into that argument.

    Needs a bit of macro magic to work.

  17. object Storage

    Permalink
  18. object Timer

    Permalink
  19. object Util

    Permalink
  20. package frontend

    Permalink
  21. package interp

    Permalink

Ungrouped