Class jls.lang.Runtime

The Runtime class provides interaction with the underlying OS.
Defined in: Runtime.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
jls.lang.Runtime.addShutdownHook(hook)
Registers a new virtual-machine shutdown hook.
<static>  
jls.lang.Runtime.exec(cmdArray, envp, dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory.
<static>  
jls.lang.Runtime.exit(status)
Terminates the program and returns a value to the OS.
<static>  
jls.lang.Runtime.gc()
Runs the garbage collector.
<static>  
jls.lang.Runtime.getRuntime()
Gets the current runtime instance.
<static>  
jls.lang.Runtime.halt(status)
Forcibly terminates the program and returns a value to the OS.
<static>  
jls.lang.Runtime.loadLibrary(name)
Loads a native library compliant with the JLS native engine.
Class Detail
jls.lang.Runtime()
Method Detail
<static> jls.lang.Runtime.addShutdownHook(hook)
Registers a new virtual-machine shutdown hook.
Parameters:
{Function} hook
The hook function.

<static> {jls.lang.Process} jls.lang.Runtime.exec(cmdArray, envp, dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory.
Parameters:
{Array} cmdArray
Array of strings specifying the command-line arguments. The first argument is the name of the executable file.
{Array} envp
Array of key=values specifying the environment strings. If undefined, the new process inherits the environment of the parent process.
{jls.io.File} dir
The working directory of the subprocess, or undefined if the subprocess should inherit the working directory of the current process.
Returns:
{jls.lang.Process} A new Process for managing the subprocess.

<static> jls.lang.Runtime.exit(status)
Terminates the program and returns a value to the OS.
Parameters:
{Number} status
The exit status to return to the OS.

<static> jls.lang.Runtime.gc()
Runs the garbage collector.

<static> {jls.lang.Runtime} jls.lang.Runtime.getRuntime()
Gets the current runtime instance.
Returns:
{jls.lang.Runtime} The runtime instance.

<static> jls.lang.Runtime.halt(status)
Forcibly terminates the program and returns a value to the OS.
Parameters:
{Number} status
The exit status to return to the OS.

<static> jls.lang.Runtime.loadLibrary(name)
Loads a native library compliant with the JLS native engine.
Parameters:
{String} name
The name of the library to load.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:14 GMT+0100 (CET)