Trait

ammonite.repl

FullReplAPI

Related Doc: package repl

Permalink

trait FullReplAPI extends ReplAPI

Linear Supertypes
ReplAPI, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FullReplAPI
  2. ReplAPI
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. implicit abstract def codeColorsImplicit: CodeColors

    Permalink
    Definition Classes
    ReplAPI
  2. abstract val colors: Ref[Colors]

    Permalink
    Attributes
    protected
  3. abstract 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
    ReplAPI
  4. abstract 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
    ReplAPI
  5. abstract 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
    ReplAPI
  6. abstract def fullImports: Imports

    Permalink

    Shows all imports added that bring values into scope for the commands a user runs; *includes* imports from the built-in predef and user predef files

    Shows all imports added that bring values into scope for the commands a user runs; *includes* imports from the built-in predef and user predef files

    Definition Classes
    ReplAPI
  7. abstract def height: Int

    Permalink

    Current height of the terminal

    Current height of the terminal

    Definition Classes
    ReplAPI
  8. abstract 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
    ReplAPI
  9. abstract def imports: Imports

    Permalink

    Shows the imports added to scope by the commands a user has entered so far; *excludes* imports from the built-in predef and user predef files

    Shows the imports added to scope by the commands a user has entered so far; *excludes* imports from the built-in predef and user predef files

    Definition Classes
    ReplAPI
  10. abstract 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
    ReplAPI
  11. abstract def load: ReplLoad

    Permalink
    Definition Classes
    ReplAPI
  12. abstract 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
    ReplAPI
  13. abstract val pprinter: Ref[PPrinter]

    Permalink
    Definition Classes
    ReplAPI
  14. abstract 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
    ReplAPI
  15. abstract def replArgs0: IndexedSeq[Bind[_]]

    Permalink
    Attributes
    protected[this]
  16. abstract def sess: 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
    ReplAPI
  17. abstract def show(t: Any, width: Integer = null, height: Integer = null, indent: Integer = null): 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
    ReplAPI
  18. abstract def show(t: Any): Unit

    Permalink
    Definition Classes
    ReplAPI
  19. implicit abstract def tprintColorsImplicit: TPrintColors

    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
    ReplAPI
  20. abstract def usedEarlierDefinitions: Seq[String]

    Permalink

    If class wrapping is enabled, this lists the names of the previous commands that the current commands actually references (as told by the scalac).

    If class wrapping is enabled, this lists the names of the previous commands that the current commands actually references (as told by the scalac).

    E.g. in a session like @ val n = 2 n: Int = 2

    @ val p = 1 p: Int = 1

    @ n + p res2: Int = 3 this would have returned an empty list if called from the same line as val n = 2 or val p = 1. This would have returned Seq("cmd0", "cmd1") if called from the same line as n + p, as both cmd0, that defines n, and cmd1, that defines p, are referenced from this line.

    Definition Classes
    ReplAPI
  21. abstract def width: Int

    Permalink

    Current width of the terminal

    Current width of the terminal

    Definition Classes
    ReplAPI

Concrete 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

    Permalink

    This stuff is used for the REPL-generated code that prints things; shouldn't really be used by users, but needs to be public and accessible

  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. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. 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
    FullReplAPIReplAPI
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  17. implicit def pprinterImplicit: PPrinter

    Permalink
    Definition Classes
    ReplAPI
  18. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. 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
  21. 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
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ReplAPI

Inherited from AnyRef

Inherited from Any

Ungrouped