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

    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

    Exception for reporting script compilation failures

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

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

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

  10. trait IvyConstructor extends AnyRef

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

    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, info: (String) ⇒ Unit) extends Product with Serializable

    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 compile warning

    error

    How you want it to print a compile error

    info

    How you want to print compile info logging. *Not* the same as out, which is used to print runtime output.

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

  14. class Repl extends AnyRef

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

    The result of a single pass through the ammonite REPL.

  16. sealed trait Resolver extends AnyRef

    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

  18. trait StableRef[T] extends AnyRef

    Encapsulates a read-write cell that can be passed around

  19. trait Storage extends AnyRef

    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 Cell

  2. object Colors extends Serializable

  3. object Ex

    Nice pattern matching for chained exceptions

  4. object History

  5. object ImportData extends Serializable

  6. object IvyConstructor extends IvyConstructor

  7. object IvyThing extends Serializable

  8. object Main

    The various entry-points to the Ammonite repl

  9. object Parsers

  10. object Ref

  11. object Repl

  12. object Res

  13. object Resolver

  14. object Resolvers

  15. object ScriptInit

    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.

  16. object Storage

  17. object Timer

  18. object Util

  19. package frontend

  20. package interp

Ungrouped