JsUnit |
![]() |
![]() |
Helper class with static flags. More...

Public Member Functions | |
| void | JsUtil () |
| SystemWriter | getSystemWriter () |
| Returns the SystemWriter. More... | |
| String | include (String fname) |
| Includes a JavaScript file. More... | |
| Function | getCaller (Function fn) |
| Retrieve the caller of a function. More... | |
| void | quit (Number ret) |
| Quits the JavaScript engine. More... | |
Static Public Attributes | |
| static Boolean | isIIS |
| Flag for Microsoft IIS. More... | |
| static Boolean | isNSServer |
| Flag for Netscape Enterprise Server (iPlanet) engine. More... | |
| static Boolean | isObtree |
| Flag for Obtree C4. More... | |
| static Boolean | isJScript |
| Flag for Microsoft JScript. More... | |
| static Object | global |
| The global object. More... | |
| static Boolean | isKJS |
| Flag for a KJS shell. More... | |
| static Boolean | isMozillaShell |
| Flag for a Mozilla JavaScript shell. More... | |
| static SystemWriter | mWriter |
| The SystemWriter. More... | |
| static Boolean | isShell |
| Flag for a command line shell. More... | |
| static Boolean | isRhino |
| Flag for Rhino. More... | |
| static Boolean | isBrowser |
| Flag for a browser. More... | |
| static Boolean | hasCallStackSupport |
| Flag for call stack support. More... | |
| static Boolean | isWSH |
| Flag for Microsoft Windows Scripting Host. More... | |
Helper class with static flags.
| void JsUtil::JsUtil | ( | ) |
Retrieve the caller of a function.
| fn | The function to examine. |
| SystemWriter JsUtil::getSystemWriter | ( | ) |
Returns the SystemWriter.
Instantiates a SystemWriter depending on the current JavaScript engine. Works for command line shells WSH, Rhino and SpiderMonkey.
Includes a JavaScript file.
| fname | The file name. Loads the content of a JavaScript file into a String that has to be evaluated. Works for command line shells WSH, Rhino and SpiderMonkey. |
| void JsUtil::quit | ( | Number | ret | ) |
Quits the JavaScript engine.
| ret | The exit code. Stops current JavaScript engine and returns an exit code. Works for command line shells WSH, Rhino and SpiderMonkey. |
|
static |
The global object.
The member keeps the execution scope of this file, which is normally the global object.
|
static |
Flag for call stack support.
The member is true, if the engine provides call stack info.
|
static |
Flag for a browser.
The member is true, if the script runs within a browser environment.
|
static |
Flag for Microsoft IIS.
The member is true, if the script runs in the Microsoft JScript engine.
|
static |
Flag for Microsoft JScript.
The member is true, if the script runs in the Microsoft JScript engine.
|
static |
Flag for a KJS shell.
The member is true, if the script runs in a command line shell of a KDE's script engine.
|
static |
Flag for a Mozilla JavaScript shell.
The member is true, if the script runs in a command line shell of a Mozilla.org script engine (either SpiderMonkey or Rhino).
|
static |
Flag for Netscape Enterprise Server (iPlanet) engine.
The member is true, if the script runs in the iPlanet as SSJS.
|
static |
Flag for Obtree C4.
The member is true, if the script runs in Obtree C4 of IXOS.
|
static |
Flag for Rhino.
The member is true, if the script runs in an embedded Rhino of Mozilla.org.
|
static |
Flag for a command line shell.
The member is true, if the script runs in a command line shell.
|
static |
Flag for Microsoft Windows Scripting Host.
The member is true, if the script runs in the Microsoft Windows Scripting Host.
|
static |
The SystemWriter.
|
JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
|
Generated on Wed Apr 15 2015 02:33:07 for JsUnit by doxygen 1.8.5
|