Class

ammonite.repl

ReplApiImpl

Related Doc: package repl

Permalink

class ReplApiImpl extends FullReplAPI with DefaultReplAPI

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReplApiImpl
  2. DefaultReplAPI
  3. FullReplAPI
  4. ReplAPI
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReplApiImpl(interp: Interpreter, width0: ⇒ Int, height0: ⇒ Int, colors0: Ref[Colors], prompt0: Ref[String], frontEnd0: Ref[FrontEnd], history0: ⇒ History, sess0: Session, replArgs0: Seq[Bind[_]])

    Permalink

Type Members

  1. trait Internal extends AnyRef

    Permalink
    Definition Classes
    FullReplAPI

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Internal extends Internal

    Permalink
    Definition Classes
    DefaultReplAPIFullReplAPI
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. implicit val codeColors: CodeColors

    Permalink
    Definition Classes
    ReplApiImplReplAPI
  8. val colors: Ref[Colors]

    Permalink

    The colors that will be used to render the Ammonite REPL in the terminal

    The colors that will be used to render the Ammonite REPL in the terminal

    Definition Classes
    ReplApiImplReplAPI
  9. def compiler: Global

    Permalink

    Access the compiler to do crazy things if you really want to!

    Access the compiler to do crazy things if you really want to!

    Definition Classes
    ReplApiImplReplAPI
  10. implicit def derefPPrint(implicit t: Ref[Config]): Config

    Permalink
    Definition Classes
    ReplAPI
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def exit(value: Any): Nothing

    Permalink

    Exit the Ammonite REPL.

    Exit the Ammonite REPL. You can also use Ctrl-D to exit

    Definition Classes
    ReplAPI
  14. def exit: Nothing

    Permalink

    Exit the Ammonite REPL.

    Exit the Ammonite REPL. You can also use Ctrl-D to exit

    Definition Classes
    ReplAPI
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. val frontEnd: Ref[FrontEnd]

    Permalink

    The front-end REPL used to take user input.

    The front-end REPL used to take user input. Modifiable!

    Definition Classes
    ReplApiImplReplAPI
  17. def fullHistory: History

    Permalink

    History of commands that have been entered into the shell, including previous sessions

    History of commands that have been entered into the shell, including previous sessions

    Definition Classes
    ReplApiImplReplAPI
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. def height: Int

    Permalink

    Current height of the terminal

    Current height of the terminal

    Definition Classes
    ReplApiImplReplAPI
  21. def help: String

    Permalink

    Display help text if you don't know how to use the REPL

    Display help text if you don't know how to use the REPL

    Definition Classes
    DefaultReplAPIReplAPI
  22. def history: History

    Permalink

    History of commands that have been entered into the shell during the current session

    History of commands that have been entered into the shell during the current session

    Definition Classes
    ReplApiImplReplAPI
  23. def imports: String

    Permalink

    Show all the imports that are used to execute commands going forward

    Show all the imports that are used to execute commands going forward

    Definition Classes
    ReplApiImplReplAPI
  24. val interp: Interpreter

    Permalink
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def lastException: Throwable

    Permalink

    The last exception that was thrown in the REPL; null if nothing has yet been thrown.

    The last exception that was thrown in the REPL; null if nothing has yet been thrown. Useful if you want additional information from the thrown exception than the printed stack trace (e.g. many exceptions have additional metadata attached) or if you want to show the stack trace on an exception that doesn't normally print it (e.g. seeing the stack when a Ctrl-C interrupt happened) via lastException.printStackTrace.

    Definition Classes
    ReplApiImplReplAPI
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. def newCompiler(): Unit

    Permalink

    Throw away the current scala.tools.nsc.Global and get a new one

    Throw away the current scala.tools.nsc.Global and get a new one

    Definition Classes
    ReplApiImplReplAPI
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. implicit lazy val pprintConfig: Ref[Config]

    Permalink

    Controls how things are pretty-printed in the REPL.

    Controls how things are pretty-printed in the REPL. Feel free to shadow this with your own definition to change how things look

    Definition Classes
    ReplApiImplReplAPI
  32. val prompt: Ref[String]

    Permalink

    Read/writable prompt for the shell.

    Read/writable prompt for the shell. Use this to change the REPL prompt at any time!

    Definition Classes
    ReplApiImplReplAPI
  33. def replArgs: Vector[Bind[_]]

    Permalink
    Definition Classes
    ReplApiImplFullReplAPI
  34. def search(target: scala.reflect.api.JavaUniverse.Type): Option[String]

    Permalink
  35. object sess extends Session

    Permalink

    Functions that can be used to manipulate the current REPL session: check-pointing progress, reverting to earlier checkpoints, or deleting checkpoints by name.

    Functions that can be used to manipulate the current REPL session: check-pointing progress, reverting to earlier checkpoints, or deleting checkpoints by name.

    Frames get pushed on a stack; by default, a saved frame is accessible simply by calling load. If you provide a name when saveing a checkpoint, it can later be loaded directly by providing the same name to load

    Un-named checkpoints are garbage collected, together with their classloader and associated data, when they are no longer accessible due to restore. Named checkpoints are kept forever; call delete on them if you really want them to go away.

    Definition Classes
    ReplApiImplReplAPI
  36. def show[T](t: T, width: Integer = null, height: Integer = 0, indent: Integer = null, colors: Colors = null)(implicit arg0: PPrint[T], cfg: Config = Config.Defaults.PPrintConfig): Unit

    Permalink
    Definition Classes
    ReplApiImplReplAPI
  37. def show[T](implicit arg0: PPrint[T], cfg: Config): (T) ⇒ Unit

    Permalink

    Lets you configure the pretty-printing of a value.

    Lets you configure the pretty-printing of a value. By default, it simply disables truncation and prints the entire thing, but you can set other parameters as well if you want.

    Definition Classes
    ReplApiImplReplAPI
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. implicit def tprintColors: TPrintColors

    Permalink
    Definition Classes
    ReplApiImplReplAPI
  41. def typeOf[T](t: ⇒ T)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): scala.reflect.api.JavaUniverse.Type

    Permalink

    Get the Type object representing the type of t.

    Get the Type object representing the type of t. Useful for finding what its methods are and what you can do with it

    Definition Classes
    FullReplAPIReplAPI
  42. def typeOf[T](implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): scala.reflect.api.JavaUniverse.Type

    Permalink

    Get the Type object of T.

    Get the Type object of T. Useful for finding what its methods are and what you can do with it

    Definition Classes
    FullReplAPIReplAPI
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def width: Int

    Permalink

    Current width of the terminal

    Current width of the terminal

    Definition Classes
    ReplApiImplReplAPI

Inherited from DefaultReplAPI

Inherited from FullReplAPI

Inherited from ReplAPI

Inherited from AnyRef

Inherited from Any

Ungrouped