C# Class Rhino.NativeGlobal

Inheritance: IdFunctionCall
显示文件 Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
ExecIdCall ( IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
Init ( Context cx, Scriptable scope, bool @sealed ) : void

Private Methods

Method Description
ConstructError ( Context cx, string error, string message, Scriptable scope ) : EcmaError
ConstructError ( Context cx, string error, string message, Scriptable scope, string sourceName, int lineNumber, int columnNumber, string lineSource ) : EcmaError
Decode ( string str, bool fullUri ) : string
Encode ( string str, bool fullUri ) : string
EncodeUnescaped ( char c, bool fullUri ) : bool
IsEvalFunction ( object functionObj ) : bool
Js_escape ( object args ) : object

The global method escape, as per ECMA-262 15.1.2.4.

The global method escape, as per ECMA-262 15.1.2.4. Includes code for the 'mask' argument supported by the C escape method, which used to be part of the browser imbedding. Blame for the strange constant names should be directed there.

Js_eval ( Context cx, Scriptable scope, object args ) : object

This is an indirect call to eval, and thus uses the global environment.

This is an indirect call to eval, and thus uses the global environment. Direct calls are executed via ScriptRuntime.callSpecial().

Js_parseFloat ( object args ) : object

The global method parseFloat, as per ECMA-262 15.1.2.3.

The global method parseFloat, as per ECMA-262 15.1.2.3.

Js_parseInt ( object args ) : object

The global method parseInt, as per ECMA-262 15.1.2.2.

The global method parseInt, as per ECMA-262 15.1.2.2.

Js_unescape ( object args ) : object

The global unescape method, as per ECMA-262 15.1.2.5.

The global unescape method, as per ECMA-262 15.1.2.5.

OneUcs4ToUtf8Char ( byte utf8Buffer, int ucs4Char ) : int
ToHexChar ( int i ) : char
UnHex ( char c ) : int
UnHex ( char c1, char c2 ) : int
UriError ( ) : EcmaError

Method Details

ExecIdCall() public method

public ExecIdCall ( IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
f IdFunctionObject
cx Context
scope Scriptable
thisObj Scriptable
args object
return object

Init() public static method

public static Init ( Context cx, Scriptable scope, bool @sealed ) : void
cx Context
scope Scriptable
@sealed bool
return void