Packages

c

io.scalajs.nodejs.repl

REPLServerExtensions

implicit final class REPLServerExtensions[X <: REPLServer] extends AnyVal

REPL Server events

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. REPLServerExtensions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new REPLServerExtensions(server: X)

    server

    the given instance

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def contextAs[T]: T
    Annotations
    @inline()
  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def onExit(listener: () => Any): X

    The 'exit' event is emitted when the REPL is exited either by receiving the .exit command as input, the user pressing CTRL-C twice to signal SIGINT, or by pressing CTRL-D to signal 'end' on the input stream.

    The 'exit' event is emitted when the REPL is exited either by receiving the .exit command as input, the user pressing CTRL-C twice to signal SIGINT, or by pressing CTRL-D to signal 'end' on the input stream. The listener callback is invoked without any arguments.

    listener

    The listener callback

    Annotations
    @inline()
  9. def onReset(listener: (REPLContext) => Any): X

    The 'reset' event is emitted when the REPL's context is reset.

    The 'reset' event is emitted when the REPL's context is reset. This occurs whenever the .clear command is received as input unless the REPL is using the default evaluator and the repl.REPLServer instance was created with the useGlobal option set to true. The listener callback will be called with a reference to the context object as the only argument.

    listener

    The listener callback

    Annotations
    @inline()
  10. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped