C# Class Jurassic.Library.GlobalObject

Represents functions and properties within the global scope.
Inheritance: ObjectInstance
Mostra file Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

Method Description
Eval ( ScriptEngine engine, object code, Compiler scope, object thisObject, bool strictMode ) : object

Evaluates the given javascript source code and returns the result.

Private Methods

Method Description
CreateCharacterSetLookupTable ( string characters ) : bool[]

Creates a 128 entry lookup table for the characters in the given string.

Decode ( ScriptEngine engine, string input, bool reservedSet ) : string

Decodes a string containing a URI or a portion of a URI.

DecodeURI ( ScriptEngine engine, string input ) : string
DecodeURIComponent ( ScriptEngine engine, string input ) : string
Encode ( ScriptEngine engine, string input, bool unescapedSet ) : string

Encodes a string containing a URI or a portion of a URI.

EncodeURI ( ScriptEngine engine, string input ) : string
EncodeURIComponent ( ScriptEngine engine, string input ) : string
Escape ( string input ) : string
Eval ( ScriptEngine engine, object code ) : object
GetGlobalProperties ( ) : List

Retrieves a list of properties to apply to the global object.

GlobalObject ( ObjectInstance prototype ) : System

Creates a new Global object.

IsFinite ( double value ) : bool
IsNaN ( double value ) : bool
IsWhiteSpaceOrLineTerminator ( int c ) : bool

Determines if the given character is whitespace or a line terminator.

ParseFloat ( string input ) : double
ParseHexNumber ( string input, int start, int length ) : int

Parses a hexidecimal number from within a string.

ParseInt ( ScriptEngine engine, string input, double radix = 0.0 ) : double
ReadInteger ( System reader, int &digitsRead ) : double

Reads an integer value using the given reader.

Unescape ( string input ) : string

Method Details

Eval() public static method

Evaluates the given javascript source code and returns the result.
public static Eval ( ScriptEngine engine, object code, Compiler scope, object thisObject, bool strictMode ) : object
engine ScriptEngine The associated script engine.
code object The source code to evaluate.
scope Compiler The containing scope.
thisObject object The value of the "this" keyword in the containing scope.
strictMode bool Indicates whether the eval statement is being called from /// strict mode code.
return object