object nodeReplMod
- Source
- nodeReplMod.scala
- Alphabetic
- By Inheritance
- nodeReplMod
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- 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("node:repl", "REPLServer") @native()
- See also
https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_repl
- class Recoverable extends replMod.Recoverable
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("node:repl", "Recoverable") @native()
- See also
https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_recoverable_errors
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("node: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("node:repl", "REPL_MODE_STRICT") @native()
- val ^: Any
- Annotations
- @JSImport("node: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): replMod.REPLServer
- Annotations
- @inline()
- def start(options: ReplOptions): replMod.REPLServer
- Annotations
- @inline()
- def start(): replMod.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("node:repl", "writer") @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated