object replMod
- Source
- replMod.scala
- Alphabetic
- By Inheritance
- replMod
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait REPLCommand extends Object with StObject
- Annotations
- @JSType() @native()
- type REPLCommandAction = ThisFunction1[REPLServer, java.lang.String, Unit]
- type REPLEval = ThisFunction4[REPLServer, java.lang.String, Context, java.lang.String, Function2[|[Error, Null], Any, Unit], Unit]
- class REPLServer extends Object with StObject
Provides a customizable Read-Eval-Print-Loop (REPL).
Provides a customizable Read-Eval-Print-Loop (REPL).
Instances of
repl.REPLServerwill accept individual lines of user input, evaluate those according to a user-defined evaluation function, then output the result. Input and output may be fromstdinandstdout, respectively, or may be connected to any Node.jsstream.Instances of
repl.REPLServersupport automatic completion of inputs, simplistic Emacs-style line editing, multi-line inputs, ANSI-styled output, saving and restoring current REPL session state, error recovery, and customizable evaluation functions.Instances of
repl.REPLServerare created using therepl.start()method and _should not_ be created directly using the JavaScriptnewkeyword.- Annotations
- @JSType() @JSImport("repl", "REPLServer") @native()
- See also
https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_repl
- type REPLWriter = ThisFunction1[REPLServer, Any, java.lang.String]
- class Recoverable extends Object with StObject with Error
Indicates a recoverable error that a
REPLServercan use to support multi-line input.Indicates a recoverable error that a
REPLServercan use to support multi-line input.- Annotations
- @JSType() @JSImport("repl", "Recoverable") @native()
- See also
https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_recoverable_errors
- trait ReplOptions extends Object with StObject
- Annotations
- @JSType() @native()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val REPL_MODE_SLOPPY: Symbol
A flag passed in the REPL options.
A flag passed in the REPL options. Evaluates expressions in sloppy mode.
- Annotations
- @JSImport("repl", "REPL_MODE_SLOPPY") @native()
- val REPL_MODE_STRICT: Symbol
A flag passed in the REPL options.
A flag passed in the REPL options. Evaluates expressions in strict mode. This is equivalent to prefacing every repl statement with
'use strict'.- Annotations
- @JSImport("repl", "REPL_MODE_STRICT") @native()
- val ^: Any
- Annotations
- @JSImport("repl", JSImport.Namespace) @native()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def start(options: java.lang.String): REPLServer
- Annotations
- @inline()
- def start(options: ReplOptions): REPLServer
- Annotations
- @inline()
- def start(): REPLServer
Creates and starts a
repl.REPLServerinstance.Creates and starts a
repl.REPLServerinstance.- Annotations
- @inline()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val writer: REPLWriter with Options
This is the default "writer" value, if none is passed in the REPL options, and it can be overridden by custom print functions.
This is the default "writer" value, if none is passed in the REPL options, and it can be overridden by custom print functions.
- Annotations
- @JSImport("repl", "writer") @native()
- object REPLCommand
- object ReplOptions
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated