org.scalajs.jsenv.nodejs.NodeJSEnv

ComNodeRunner

class ComNodeRunner extends AsyncNodeRunner with ComJSRunner

Attributes
protected
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ComNodeRunner
  2. ComJSRunner
  3. AsyncNodeRunner
  4. AbstractNodeRunner
  5. AsyncExtRunner
  6. AsyncJSRunner
  7. AbstractExtRunner
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ComNodeRunner(classpath: CompleteClasspath, code: VirtualJSFile, logger: Logger, console: JSConsole)

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 await(): Unit

    Await completion of the started Run.

    Await completion of the started Run. Throws if the run failed

    Definition Classes
    AsyncExtRunnerAsyncJSRunner
  6. val classpath: CompleteClasspath

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(): Unit

    Close the communication channel.

    Close the communication channel. Allows the VM to terminate if it is still waiting for callback. The JVM side **must** call close in order to be able to expect termination of the VM.

    Calling stop on a [ComJSRunner]] automatically closes the channel.

    Definition Classes
    ComNodeRunnerComJSRunner
  9. val code: VirtualJSFile

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  10. val console: JSConsole

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected
    Definition Classes
    ComNodeRunner → AnyRef
  14. def fixPercentConsole(): Seq[VirtualJSFile]

    File(s) to hack console.log to prevent if from changing %% to %.

    File(s) to hack console.log to prevent if from changing %% to %. Is used by initFiles, override to change/disable.

    Attributes
    protected
    Definition Classes
    AbstractNodeRunner
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def getJSFiles(): Seq[VirtualJSFile]

    Get all files that are passed to VM (libraries and code)

    Get all files that are passed to VM (libraries and code)

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  17. def getLibJSFiles(): Seq[VirtualJSFile]

    Libraries are loaded via require in Node.js

    Libraries are loaded via require in Node.js

    Attributes
    protected
    Definition Classes
    AbstractNodeRunnerAbstractExtRunner
  18. def getVMArgs(): Seq[String]

    VM arguments excluding executable.

    VM arguments excluding executable. Override to adapt. Overrider is responsible to add additionalArgs.

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  19. def getVMEnv(): Map[String, String]

    VM environment.

    VM environment. Override to adapt.

    Default is sys.env and additionalEnv

    Attributes
    protected
    Definition Classes
    AbstractNodeRunnerAbstractExtRunner
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. def initFiles(): Seq[VirtualJSFile]

    Concatenates results from installSourceMap, fixPercentConsole and runtimeEnv (in this order).

    Concatenates results from installSourceMap, fixPercentConsole and runtimeEnv (in this order).

    Attributes
    protected
    Definition Classes
    ComNodeRunnerAbstractNodeRunnerAbstractExtRunner
  22. def installSourceMap(): Seq[VirtualJSFile]

    File(s) to automatically install source-map-support.

    File(s) to automatically install source-map-support. Is used by initFiles, override to change/disable.

    Attributes
    protected
    Definition Classes
    AbstractNodeRunner
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def isRunning(): Boolean

    Checks whether this async runner is still running

    Checks whether this async runner is still running

    Definition Classes
    AsyncExtRunnerAsyncJSRunner
  25. val libCache: VirtualFileMaterializer

    Attributes
    protected[this]
    Definition Classes
    AbstractNodeRunner
  26. val logger: Logger

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  30. final def pipeToConsole(in: InputStream, console: JSConsole): Unit

    pipe lines from input stream to JSConsole

    pipe lines from input stream to JSConsole

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  31. final def pipeVMData(vmInst: Process): Unit

    Pipe stdin and stdout from/to VM

    Pipe stdin and stdout from/to VM

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  32. def receive(): String

    Block until a message is received.

    Block until a message is received. Throws a ComClosedExcpetion if the channel is closed before a message is received.

    Definition Classes
    ComNodeRunnerComJSRunner
  33. def requireLibrary(dep: ResolvedJSDependency): VirtualJSFile

    Rewrites a library virtual file to a require statement if possible

    Rewrites a library virtual file to a require statement if possible

    Attributes
    protected
    Definition Classes
    AbstractNodeRunner
  34. def runtimeEnv(): Seq[VirtualJSFile]

    File(s) to define ScalaJSEnv. Defines exitFunction. Is used by initFiles, override to change/disable.

    File(s) to define ScalaJSEnv. Defines exitFunction. Is used by initFiles, override to change/disable.

    Attributes
    protected
    Definition Classes
    AbstractNodeRunner
  35. def send(msg: String): Unit

    Send a message to the JS VM.

    Send a message to the JS VM. Throws if the message cannot be sent.

    Definition Classes
    ComNodeRunnerComJSRunner
  36. final def sendJS(files: Seq[VirtualJSFile], out: Writer): Unit

    send a bunch of JS files to a writer

    send a bunch of JS files to a writer

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  37. final def sendJS(files: Seq[VirtualJSFile], out: OutputStream): Unit

    send a bunch of JS files to an output stream

    send a bunch of JS files to an output stream

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  38. def sendVMStdin(out: OutputStream): Unit

    Sends required data to VM Stdin (can throw)

    Sends required data to VM Stdin (can throw)

    Attributes
    protected
    Definition Classes
    AbstractNodeRunnerAbstractExtRunner
  39. def start(): Future[Unit]

    Start the associated run and returns a Future that completes when the run terminates.

    Start the associated run and returns a Future that completes when the run terminates.

    Definition Classes
    AsyncExtRunnerAsyncJSRunner
  40. def startVM(): Process

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  41. def stop(): Unit

    Abort the associated run.

    Abort the associated run. Also closes the communication channel.

    Definition Classes
    ComJSRunnerAsyncJSRunner
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  43. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def waitForVM(vmInst: Process): Unit

    Wait for the VM to terminate, verify exit code

    Wait for the VM to terminate, verify exit code

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  48. def writeJSFile(file: VirtualJSFile, writer: Writer): Unit

    write a single JS file to a writer using an include fct if appropriate uses require if the file exists on the filesystem

    write a single JS file to a writer using an include fct if appropriate uses require if the file exists on the filesystem

    Attributes
    protected
    Definition Classes
    AbstractNodeRunnerAbstractExtRunner

Inherited from ComJSRunner

Inherited from AsyncNodeRunner

Inherited from AbstractNodeRunner

Inherited from NodeJSEnv.AsyncExtRunner

Inherited from AsyncJSRunner

Inherited from AnyRef

Inherited from Any

Ungrouped