ammonite.frontend

ReplAPI

Related Docs: object ReplAPI | package frontend

trait ReplAPI extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReplAPI
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. implicit abstract def codeColors: CodeColors

  2. abstract val colors: Ref[Colors]

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

  3. abstract def compiler: Global

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

  4. abstract val frontEnd: Ref[FrontEnd]

    The front-end REPL used to take user input.

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

  5. abstract def fullHistory: History

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

  6. abstract def height: Int

    Current height of the terminal

  7. abstract def help: String

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

  8. abstract def history: History

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

  9. abstract def imports: String

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

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

  11. abstract def load: Load

    Tools related to loading external scripts and code into the REPL

  12. abstract def newCompiler(): Unit

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

  13. implicit abstract val pprintConfig: Ref[Config]

    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

  14. abstract val prompt: Ref[String]

    Read/writable prompt for the shell.

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

  15. abstract def replArgs: Vector[Bind[_]]

  16. abstract def resolvers: Ref[List[Resolver]]

    resolvers to use when loading jars

  17. abstract def sess: 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.

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

  19. abstract def show[T](implicit arg0: PPrint[T], cfg: Config): (T) ⇒ 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.

  20. implicit abstract def tprintColors: TPrintColors

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

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

  23. abstract def width: Int

    Current width of the terminal

Concrete Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. implicit def derefPPrint(implicit t: Ref[Config]): Config

  7. final def eq(arg0: AnyRef): Boolean

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

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

    Exit the Ammonite REPL.

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

  10. def exit: Nothing

    Exit the Ammonite REPL.

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

  11. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped