Packages

c

ammonite.repl

ReplApiImpl

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[_]])

Type Members

  1. trait Internal extends AnyRef
    Definition Classes
    FullReplAPI

Value Members

  1. object Internal extends Internal
    Definition Classes
    DefaultReplAPIFullReplAPI
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. implicit val codeColorsImplicit: CodeColors
    Definition Classes
    ReplApiImplReplAPI
  8. val colors: Ref[Colors]
    Definition Classes
    ReplApiImplReplAPI
  9. def compiler: Global

    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. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. val frontEnd: Ref[FrontEnd]
    Definition Classes
    ReplApiImplReplAPI
  14. def fullHistory: History

    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
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  17. def height: Int

    Current height of the terminal

    Current height of the terminal

    Definition Classes
    ReplApiImplReplAPI
  18. def help: String

    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
  19. def history: History

    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
  20. def imports: String

    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
  21. val interp: Interpreter
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def lastException: Throwable

    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
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def newCompiler(): Unit

    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
  26. final def notify(): Unit
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  28. implicit val pprinter: Ref[PPrinter]
    Definition Classes
    ReplApiImplReplAPI
  29. implicit def pprinterImplicit: PPrinter
    Definition Classes
    ReplAPI
  30. val prompt: Ref[String]
    Definition Classes
    ReplApiImplReplAPI
  31. def replArgs: Vector[Bind[_]]
    Definition Classes
    ReplApiImplFullReplAPI
  32. def search(target: scala.reflect.api.JavaUniverse.Type): Option[String]
  33. def show(t: Any, width: Integer = null, height: Integer = 9999999, indent: Integer = null): Unit

    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
  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. implicit def tprintColorsImplicit: TPrintColors

    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
  37. def typeOf[T](t: ⇒ T)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): scala.reflect.api.JavaUniverse.Type

    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
  38. def typeOf[T](implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): scala.reflect.api.JavaUniverse.Type

    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
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def width: Int

    Current width of the terminal

    Current width of the terminal

    Definition Classes
    ReplApiImplReplAPI
  43. object sess extends Session

    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

Inherited from DefaultReplAPI

Inherited from FullReplAPI

Inherited from ReplAPI

Inherited from AnyRef

Inherited from Any

Ungrouped