C# Class Rhino.ScriptRuntime

This is the class that implements the runtime.
This is the class that implements the runtime.
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Properties

Property Type Description
BooleanClass System.Type
ByteClass System.Type
CharacterClass System.Type
ClassClass System.Type
ContextClass System.Type
ContextFactoryClass System.Type
DateClass System.Type
DoubleClass System.Type
FloatClass System.Type
FunctionClass System.Type
IntegerClass System.Type
LongClass System.Type
NaN double
NaNobj double
NumberClass System.Type
ObjectClass System.Type
ROOT_LOCALE System.Globalization.CultureInfo
ScriptableClass System.Type
ScriptableObjectClass System.Type
ShortClass System.Type
StringClass System.Type
emptyArgs object[]
emptyStrings string[]
messageProvider ScriptRuntime.MessageProvider
negativeZero double

Public Methods

Method Description
Add ( Sharpen.CharSequence val1, object val2 ) : Sharpen.CharSequence
Add ( object val1, Sharpen.CharSequence val2 ) : Sharpen.CharSequence
Add ( object val1, object val2, Context cx ) : object
AddInstructionCount ( Context cx, int instructionsToAdd ) : void
ApplyOrCall ( bool isApply, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object

Function.prototype.apply and Function.prototype.call See Ecma 15.3.4.[34]

Bind ( Context cx, Scriptable scope, string id ) : Scriptable

Returns the object in the scope chain that has a given property.

Returns the object in the scope chain that has a given property. The order of evaluation of an assignment expression involves evaluating the lhs to a reference, evaluating the rhs, and then modifying the reference with the rhs value. This method is used to 'bind' the given name to an object containing that property so that the side effects of evaluating the rhs do not affect which property is modified. Typically used in conjunction with setName. See ECMA 10.1.4

CallRef ( Callable function, Scriptable thisObj, object args, Context cx ) : Ref

Perform function call in reference context.

Perform function call in reference context. Should always return value that can be passed to RefGet(Ref, Context) or RefSet(Ref, object, Context) arbitrary number of times. The args array reference should not be stored in any object that is can be GC-reachable after this method returns. If this is necessary, store args.clone(), not args array itself.

CallSpecial ( Context cx, Callable fun, Scriptable thisObj, object args, Scriptable scope, Scriptable callerThis, int callType, string filename, int lineNumber ) : object
CheckRegExpProxy ( Context cx ) : RegExpProxy
Cmp_LE ( object val1, object val2 ) : bool
Cmp_LT ( object val1, object val2 ) : bool
ConstructError ( string error, string message ) : EcmaError
ConstructError ( string error, string message, int lineNumberDelta ) : EcmaError
ConstructError ( string error, string message, string sourceName, int lineNumber, string lineSource, int columnNumber ) : EcmaError
CreateFunctionActivation ( NativeFunction funObj, Scriptable scope, object args ) : Scriptable
Delete ( object obj, object id, Context cx, bool isName ) : object

The delete operator See ECMA 11.4.1 In ECMA 0.19, the description of the delete operator (11.4.1) assumes that the [[Delete]] method returns a value.

The delete operator See ECMA 11.4.1 In ECMA 0.19, the description of the delete operator (11.4.1) assumes that the [[Delete]] method returns a value. However, the definition of the [[Delete]] operator (8.6.2.5) does not define a return value. Here we assume that the [[Delete]] method doesn't return a value.

DeleteObjectElem ( Scriptable target, object elem, Context cx ) : bool
DoTopCall ( Callable callable, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
ElemIncrDecr ( object obj, object index, Context cx, int incrDecrMask ) : object
EnterActivationFunction ( Context cx, Scriptable scope ) : void
EnterDotQuery ( object value, Scriptable scope ) : Scriptable
EnterWith ( object obj, Context cx, Scriptable scope ) : Scriptable
EnumId ( object enumObj, Context cx ) : object
EnumInit ( object value, Context cx, bool enumValues ) : object
EnumInit ( object value, Context cx, int enumType ) : object
EnumNext ( object enumObj ) : bool
EnumValue ( object enumObj, Context cx ) : object
Eq ( object x, object y ) : bool

Equality See ECMA 11.9

EscapeAttributeValue ( object value, Context cx ) : string

Escapes the reserved characters in a value of an attribute

EscapeString ( string s ) : string
EscapeString ( string s, char escapeQuote ) : string

For escaping strings printed by object and array literals; not quite the same as 'escape.'

EscapeTextValue ( object value, Context cx ) : string

Escapes the reserved characters in a value of a text node

EvalSpecial ( Context cx, Scriptable scope, object thisArg, object args, string filename, int lineNumber ) : object

The eval function property of the global object.

The eval function property of the global object. See ECMA 15.1.2.1

ExitActivationFunction ( Context cx ) : void
GetArrayElements ( Scriptable @object ) : object[]
GetElemFunctionAndThis ( object obj, object elem, Context cx ) : Callable

Prepare for calling obj[id](...): return function corresponding to obj[id] and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.

Prepare for calling obj[id](...): return function corresponding to obj[id] and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.

GetGlobal ( Context cx ) : ScriptableObject
GetLibraryScopeOrNull ( Scriptable scope ) : ScriptableObject
GetMessage ( string messageId, object arguments ) : string
GetMessage0 ( string messageId ) : string
GetMessage1 ( string messageId, object arg1 ) : string
GetMessage2 ( string messageId, object arg1, object arg2 ) : string
GetMessage3 ( string messageId, object arg1, object arg2, object arg3 ) : string
GetMessage4 ( string messageId, object arg1, object arg2, object arg3, object arg4 ) : string
GetNameFunctionAndThis ( string name, Context cx, Scriptable scope ) : Callable

Prepare for calling name(...): return function corresponding to name and make current top scope available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.

Prepare for calling name(...): return function corresponding to name and make current top scope available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.

GetObjectElem ( Scriptable obj, object elem, Context cx ) : object
GetObjectElem ( object obj, object elem, Context cx ) : object

Call obj.[[Get]](id)

GetObjectElem ( object obj, object elem, Context cx, Scriptable scope ) : object

Call obj.[[Get]](id)

GetObjectIndex ( Scriptable obj, int index, Context cx ) : object
GetObjectIndex ( object obj, double dblIndex, Context cx ) : object
GetObjectProp ( Scriptable obj, string property, Context cx ) : object
GetObjectProp ( object obj, string property, Context cx ) : object

Version of getObjectElem when elem is a valid JS identifier name.

Version of getObjectElem when elem is a valid JS identifier name.

GetObjectProp ( object obj, string property, Context cx, Scriptable scope ) : object
GetObjectPropNoWarn ( object obj, string property, Context cx ) : object
GetPropFunctionAndThis ( object obj, string property, Context cx ) : Callable

Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.

Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method. Warning: this doesn't allow to resolve primitive prototype properly when many top scopes are involved.

GetPropFunctionAndThis ( object obj, string property, Context cx, Scriptable scope ) : Callable

Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.

Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.

GetRegExpProxy ( Context cx ) : RegExpProxy
GetTopCallScope ( Context cx ) : Scriptable
GetTopLevelProp ( Scriptable scope, string id ) : object
GetValueFunctionAndThis ( object value, Context cx ) : Callable

Prepare for calling (...): return function corresponding to and make parent scope of the function available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.

Prepare for calling (...): return function corresponding to and make parent scope of the function available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.

HasObjectElem ( Scriptable target, object elem, Context cx ) : bool
HasTopCall ( Context cx ) : bool
In ( object a, object b, Context cx ) : bool

The in operator.

The in operator. This is a new JS 1.3 language feature. The in operator mirrors the operation of the for .. in construct, and tests whether the rhs has the property given by the lhs. It is different from the for .. in construct in that:
- it doesn't perform ToObject on the right hand side
- it returns true for DontEnum properties.

IndexFromString ( string str ) : long

Return -1L if str is not an index, or the index value as lower 32 bits of the result.

Return -1L if str is not an index, or the index value as lower 32 bits of the result. Note that the result needs to be cast to an int in order to produce the actual index, which may be negative.

InitFunction ( Context cx, Scriptable scope, NativeFunction function, int type, bool fromEvalCode ) : void
InitScript ( NativeFunction funObj, Scriptable thisObj, Context cx, Scriptable scope, bool evalScript ) : void
InitStandardObjects ( Context cx, ScriptableObject scope, bool @sealed ) : ScriptableObject
InstanceOf ( object a, object b, Context cx ) : bool

The instanceof operator.

The instanceof operator.

IsArrayObject ( object obj ) : bool
IsJSLineTerminator ( int c ) : bool
IsJSWhitespaceOrLineTerminator ( int c ) : bool
IsPrimitive ( object obj ) : bool
IsRhinoRuntimeType ( Type cl ) : bool
JsDelegatesTo ( Scriptable lhs, Scriptable rhs ) : bool

Delegates to

LastStoredScriptable ( Context cx ) : Scriptable
LastUint32Result ( Context cx ) : long
LeaveDotQuery ( Scriptable scope ) : Scriptable
LeaveWith ( Scriptable scope ) : Scriptable
MemberRef ( object obj, object elem, Context cx, int memberTypeFlags ) : Ref
MemberRef ( object obj, object @namespace, object elem, Context cx, int memberTypeFlags ) : Ref
Name ( Context cx, Scriptable scope, string name ) : object

Looks up a name in the scope chain and returns its value.

Looks up a name in the scope chain and returns its value.

NameIncrDecr ( Scriptable scopeChain, string id, Context cx, int incrDecrMask ) : object
NameRef ( object name, Context cx, Scriptable scope, int memberTypeFlags ) : Ref
NameRef ( object @namespace, object name, Context cx, Scriptable scope, int memberTypeFlags ) : Ref
NewArrayLiteral ( object objects, int skipIndices, Context cx, Scriptable scope ) : Scriptable
NewBuiltinObject ( Context cx, Scriptable scope, TopLevel type, object args ) : Scriptable
NewCatchScope ( Exception t, Scriptable lastCatchScope, string exceptionName, Context cx, Scriptable scope ) : Scriptable
NewObject ( Context cx, Scriptable scope, string constructorName, object args ) : Scriptable
NewObject ( object fun, Context cx, Scriptable scope, object args ) : Scriptable

Operator new.

Operator new. See ECMA 11.2.2

NewObjectLiteral ( object propertyIds, object propertyValues, int getterSetters, Context cx, Scriptable scope ) : Scriptable
NewSpecial ( Context cx, object fun, object args, Scriptable scope, int callType ) : object
NotFoundError ( Scriptable @object, string property ) : Exception
NotFunctionError ( object value ) : Exception
NotFunctionError ( object value, object messageHelper ) : Exception
NotFunctionError ( object obj, object value, string propertyName ) : Exception
NumberToString ( double d, int @base ) : string
PadArguments ( object args, int count ) : object[]

Helper function for builtin objects that use the varargs form.

Helper function for builtin objects that use the varargs form. ECMA function formal arguments are undefined if not supplied; this function pads the argument array out to the expected length, if necessary.

PropIncrDecr ( object obj, string id, Context cx, int incrDecrMask ) : object
RefDel ( Ref @ref, Context cx ) : object
RefGet ( Ref @ref, Context cx ) : object
RefIncrDecr ( Ref @ref, Context cx, int incrDecrMask ) : object
RefSet ( Ref @ref, object value, Context cx ) : object
SearchDefaultNamespace ( Context cx ) : object
SetBuiltinProtoAndParent ( ScriptableObject @object, Scriptable scope, TopLevel type ) : void
SetConst ( Scriptable bound, object value, Context cx, string id ) : object
SetDefaultNamespace ( object @namespace, Context cx ) : object
SetEnumNumbers ( object enumObj, bool enumNumbers ) : void
SetFunctionProtoAndParent ( BaseFunction fn, Scriptable scope ) : void
SetName ( Scriptable bound, object value, Context cx, Scriptable scope, string id ) : object
SetObjectElem ( Scriptable obj, object elem, object value, Context cx ) : object
SetObjectElem ( object obj, object elem, object value, Context cx ) : object
SetObjectIndex ( Scriptable obj, int index, object value, Context cx ) : object
SetObjectIndex ( object obj, double dblIndex, object value, Context cx ) : object
SetObjectProp ( Scriptable obj, string property, object value, Context cx ) : object
SetObjectProp ( object obj, string property, object value, Context cx ) : object

Version of setObjectElem when elem is a valid JS identifier name.

Version of setObjectElem when elem is a valid JS identifier name.

SetObjectProtoAndParent ( ScriptableObject @object, Scriptable scope ) : void
SetRegExpProxy ( Context cx, RegExpProxy proxy ) : void
ShallowEq ( object x, object y ) : bool
SpecialRef ( object obj, string specialProperty, Context cx ) : Ref
StoreUint32Result ( Context cx, long value ) : void
StrictSetName ( Scriptable bound, object value, Context cx, Scriptable scope, string id ) : object
TestUint32String ( string str ) : long

If str is a decimal presentation of Uint32 value, return it as long.

If str is a decimal presentation of Uint32 value, return it as long. Othewise return -1L;

ThrowError ( Context cx, Scriptable scope, string message ) : JavaScriptException

Equivalent to executing "new Error(message)" from JavaScript.

Equivalent to executing "new Error(message)" from JavaScript.

ToBoolean ( object val ) : bool

Convert the value to a boolean.

Convert the value to a boolean. See ECMA 9.2.

ToCharSequence ( object val ) : Sharpen.CharSequence
ToInt32 ( double d ) : int
ToInt32 ( object val ) : int

See ECMA 9.5.

See ECMA 9.5.

ToInt32 ( object args, int index ) : int
ToInteger ( double d ) : double
ToInteger ( object val ) : double

See ECMA 9.4.

See ECMA 9.4.

ToInteger ( object args, int index ) : double
ToIterator ( Context cx, Scriptable scope, Scriptable obj, bool keyOnly ) : Scriptable
ToNumber ( object val ) : double

Convert the value to a number.

Convert the value to a number. See ECMA 9.3.

ToNumber ( object args, int index ) : double
ToNumber ( string s ) : double

ToNumber applied to the String type See ECMA 9.3.1

ToObject ( Context cx, Scriptable scope, object val ) : Scriptable

Convert the value to an object.

Convert the value to an object. See ECMA 9.9.

ToObject ( Scriptable scope, object val ) : Scriptable
ToObjectOrNull ( Context cx, object obj ) : Scriptable

Warning: this doesn't allow to resolve primitive prototype properly when many top scopes are involved

ToObjectOrNull ( Context cx, object obj, Scriptable scope ) : Scriptable
ToPrimitive ( object val ) : object
ToPrimitive ( object val, Type typeHint ) : object
ToString ( double val ) : string

Optimized version of toString(Object) for numbers.

Optimized version of toString(Object) for numbers.

ToString ( object val ) : string

Convert the value to a string.

Convert the value to a string. See ECMA 9.8.

ToString ( object args, int index ) : string
ToUint16 ( object val ) : char

See ECMA 9.7.

See ECMA 9.7.

ToUint32 ( double d ) : long

See ECMA 9.6.

See ECMA 9.6.

ToUint32 ( object val ) : long
TypeError ( string message ) : EcmaError
TypeError0 ( string messageId ) : EcmaError
TypeError1 ( string messageId, string arg1 ) : EcmaError
TypeError2 ( string messageId, string arg1, string arg2 ) : EcmaError
TypeError3 ( string messageId, string arg1, string arg2, string arg3 ) : EcmaError
TypeErrorThrower ( ) : BaseFunction

Returns representation of the [[ThrowTypeError]] object.

Returns representation of the [[ThrowTypeError]] object. See ECMA 5 spec, 13.2.3

Typeof ( object value ) : string

The typeof operator

TypeofName ( Scriptable scope, string id ) : string

The typeof operator that correctly handles the undefined case

UndefCallError ( object @object, object id ) : Exception
UndefReadError ( object @object, object id ) : Exception
UndefWriteError ( object @object, object id, object value ) : Exception
UpdateDotQuery ( bool value, Scriptable scope ) : object
WrapBoolean ( bool b ) : bool
WrapException ( Exception t, Scriptable scope, Context cx ) : Scriptable
WrapInt ( int i ) : int
WrapNumber ( double x ) : Number
WrapRegExp ( Context cx, Scriptable scope, object compiled ) : Scriptable

Protected Methods

Method Description
ScriptRuntime ( ) : System

No instances should be created.

No instances should be created.

Private Methods

Method Description
Call ( Context cx, object fun, object thisArg, object args, Scriptable scope ) : object
CheckDeprecated ( Context cx, string name ) : void
CheckDynamicScope ( Scriptable possibleDynamicScope, Scriptable staticTopScope ) : Scriptable

Return possibleDynamicScope if staticTopScope is present on its prototype chain and return staticTopScope otherwise.

Return possibleDynamicScope if staticTopScope is present on its prototype chain and return staticTopScope otherwise. Should only be called when staticTopScope is top scope.

CurrentXMLLib ( Context cx ) : XMLLib
DefaultObjectToSource ( Context cx, Scriptable scope, Scriptable thisObj, object args ) : string
DefaultObjectToString ( Scriptable obj ) : string
Delete ( object obj, object id, Context cx ) : object
DoScriptableIncrDecr ( Scriptable target, string id, Scriptable protoChainStart, object value, int incrDecrMask ) : object
EnumChangeObject ( ScriptRuntime x ) : void
EqNumber ( double x, object y ) : bool
EqString ( Sharpen.CharSequence x, object y ) : bool
ErrorWithClassName ( string msg, object val ) : Exception
FindFunctionActivation ( Context cx, System.Function f ) : NativeCall
GetApplyArguments ( Context cx, object arg1 ) : object[]
GetCallable ( Scriptable thisObj ) : Callable
GetExistingCtor ( Context cx, Scriptable scope, string constructorName ) : System.Function
GetIndexObject ( double d ) : object

If d is exact int value, return its value wrapped as Integer and othewise return d converted to String.

If d is exact int value, return its value wrapped as Integer and othewise return d converted to String.

GetIndexObject ( string s ) : object

If s represents index, then return index value wrapped as Integer and othewise return s.

If s represents index, then return index value wrapped as Integer and othewise return s.

GetPropFunctionAndThisHelper ( object obj, string property, Context cx, Scriptable thisObj ) : Callable
GetTopPackageNames ( ) : string[]
IsGeneratedScript ( string sourceUrl ) : bool
IsSpecialProperty ( string s ) : bool
IsStrWhiteSpaceChar ( int c ) : bool

Indicates if the character is a Str whitespace char according to ECMA spec: StrWhiteSpaceChar :::

IsValidIdentifierName ( string s ) : bool
IsVisible ( Context cx, object obj ) : bool
LastIndexResult ( Context cx ) : int
MakeUrlForGeneratedScript ( bool isEval, string masterScriptUrl, int masterScriptLine ) : string
NameIncrDecr ( Scriptable scopeChain, string id, int incrDecrMask ) : object
NameOrFunction ( Context cx, Scriptable scope, Scriptable parentScope, string name, bool asFunctionCall ) : object
NewObjectLiteral ( object propertyIds, object propertyValues, Context cx, Scriptable scope ) : Scriptable
NotXmlError ( object value ) : Exception
StoreIndexResult ( Context cx, int index ) : void
StoreScriptable ( Context cx, Scriptable value ) : void
StringToNumber ( string s, int start, int radix ) : double
ToObject ( Context cx, Scriptable scope, object val, Type staticClass ) : Scriptable
ToObject ( Scriptable scope, object val, Type staticClass ) : Scriptable
ToStringIdOrIndex ( Context cx, object id ) : string

If toString(id) is a decimal presentation of int32 value, then id is index.

If toString(id) is a decimal presentation of int32 value, then id is index. In this case return null and make the index available as ScriptRuntime.lastIndexResult(cx). Otherwise return toString(id).

TopScopeName ( Context cx, Scriptable scope, string name ) : object
UndefDeleteError ( object @object, object id ) : Exception
Uneval ( Context cx, Scriptable scope, object value ) : string
WarnAboutNonJSObject ( object nonJSObject ) : void

Method Details

Add() public static method

public static Add ( Sharpen.CharSequence val1, object val2 ) : Sharpen.CharSequence
val1 Sharpen.CharSequence
val2 object
return Sharpen.CharSequence

Add() public static method

public static Add ( object val1, Sharpen.CharSequence val2 ) : Sharpen.CharSequence
val1 object
val2 Sharpen.CharSequence
return Sharpen.CharSequence

Add() public static method

public static Add ( object val1, object val2, Context cx ) : object
val1 object
val2 object
cx Context
return object

AddInstructionCount() public static method

public static AddInstructionCount ( Context cx, int instructionsToAdd ) : void
cx Context
instructionsToAdd int
return void

ApplyOrCall() public static method

Function.prototype.apply and Function.prototype.call See Ecma 15.3.4.[34]
public static ApplyOrCall ( bool isApply, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
isApply bool
cx Context
scope Scriptable
thisObj Scriptable
args object
return object

Bind() public static method

Returns the object in the scope chain that has a given property.
Returns the object in the scope chain that has a given property. The order of evaluation of an assignment expression involves evaluating the lhs to a reference, evaluating the rhs, and then modifying the reference with the rhs value. This method is used to 'bind' the given name to an object containing that property so that the side effects of evaluating the rhs do not affect which property is modified. Typically used in conjunction with setName. See ECMA 10.1.4
public static Bind ( Context cx, Scriptable scope, string id ) : Scriptable
cx Context
scope Scriptable
id string
return Scriptable

CallRef() public static method

Perform function call in reference context.
Perform function call in reference context. Should always return value that can be passed to RefGet(Ref, Context) or RefSet(Ref, object, Context) arbitrary number of times. The args array reference should not be stored in any object that is can be GC-reachable after this method returns. If this is necessary, store args.clone(), not args array itself.
public static CallRef ( Callable function, Scriptable thisObj, object args, Context cx ) : Ref
function Callable
thisObj Scriptable
args object
cx Context
return Ref

CallSpecial() public static method

public static CallSpecial ( Context cx, Callable fun, Scriptable thisObj, object args, Scriptable scope, Scriptable callerThis, int callType, string filename, int lineNumber ) : object
cx Context
fun Callable
thisObj Scriptable
args object
scope Scriptable
callerThis Scriptable
callType int
filename string
lineNumber int
return object

CheckRegExpProxy() public static method

public static CheckRegExpProxy ( Context cx ) : RegExpProxy
cx Context
return RegExpProxy

Cmp_LE() public static method

public static Cmp_LE ( object val1, object val2 ) : bool
val1 object
val2 object
return bool

Cmp_LT() public static method

public static Cmp_LT ( object val1, object val2 ) : bool
val1 object
val2 object
return bool

ConstructError() public static method

public static ConstructError ( string error, string message ) : EcmaError
error string
message string
return EcmaError

ConstructError() public static method

public static ConstructError ( string error, string message, int lineNumberDelta ) : EcmaError
error string
message string
lineNumberDelta int
return EcmaError

ConstructError() public static method

public static ConstructError ( string error, string message, string sourceName, int lineNumber, string lineSource, int columnNumber ) : EcmaError
error string
message string
sourceName string
lineNumber int
lineSource string
columnNumber int
return EcmaError

CreateFunctionActivation() public static method

public static CreateFunctionActivation ( NativeFunction funObj, Scriptable scope, object args ) : Scriptable
funObj NativeFunction
scope Scriptable
args object
return Scriptable

Delete() public static method

The delete operator See ECMA 11.4.1 In ECMA 0.19, the description of the delete operator (11.4.1) assumes that the [[Delete]] method returns a value.
The delete operator See ECMA 11.4.1 In ECMA 0.19, the description of the delete operator (11.4.1) assumes that the [[Delete]] method returns a value. However, the definition of the [[Delete]] operator (8.6.2.5) does not define a return value. Here we assume that the [[Delete]] method doesn't return a value.
public static Delete ( object obj, object id, Context cx, bool isName ) : object
obj object
id object
cx Context
isName bool
return object

DeleteObjectElem() public static method

public static DeleteObjectElem ( Scriptable target, object elem, Context cx ) : bool
target Scriptable
elem object
cx Context
return bool

DoTopCall() public static method

public static DoTopCall ( Callable callable, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
callable Callable
cx Context
scope Scriptable
thisObj Scriptable
args object
return object

ElemIncrDecr() public static method

public static ElemIncrDecr ( object obj, object index, Context cx, int incrDecrMask ) : object
obj object
index object
cx Context
incrDecrMask int
return object

EnterActivationFunction() public static method

public static EnterActivationFunction ( Context cx, Scriptable scope ) : void
cx Context
scope Scriptable
return void

EnterDotQuery() public static method

public static EnterDotQuery ( object value, Scriptable scope ) : Scriptable
value object
scope Scriptable
return Scriptable

EnterWith() public static method

public static EnterWith ( object obj, Context cx, Scriptable scope ) : Scriptable
obj object
cx Context
scope Scriptable
return Scriptable

EnumId() public static method

public static EnumId ( object enumObj, Context cx ) : object
enumObj object
cx Context
return object

EnumInit() public static method

public static EnumInit ( object value, Context cx, bool enumValues ) : object
value object
cx Context
enumValues bool
return object

EnumInit() public static method

public static EnumInit ( object value, Context cx, int enumType ) : object
value object
cx Context
enumType int
return object

EnumNext() public static method

public static EnumNext ( object enumObj ) : bool
enumObj object
return bool

EnumValue() public static method

public static EnumValue ( object enumObj, Context cx ) : object
enumObj object
cx Context
return object

Eq() public static method

Equality See ECMA 11.9
public static Eq ( object x, object y ) : bool
x object
y object
return bool

EscapeAttributeValue() public static method

Escapes the reserved characters in a value of an attribute
public static EscapeAttributeValue ( object value, Context cx ) : string
value object Unescaped text
cx Context
return string

EscapeString() public static method

public static EscapeString ( string s ) : string
s string
return string

EscapeString() public static method

For escaping strings printed by object and array literals; not quite the same as 'escape.'
public static EscapeString ( string s, char escapeQuote ) : string
s string
escapeQuote char
return string

EscapeTextValue() public static method

Escapes the reserved characters in a value of a text node
public static EscapeTextValue ( object value, Context cx ) : string
value object Unescaped text
cx Context
return string

EvalSpecial() public static method

The eval function property of the global object.
The eval function property of the global object. See ECMA 15.1.2.1
public static EvalSpecial ( Context cx, Scriptable scope, object thisArg, object args, string filename, int lineNumber ) : object
cx Context
scope Scriptable
thisArg object
args object
filename string
lineNumber int
return object

ExitActivationFunction() public static method

public static ExitActivationFunction ( Context cx ) : void
cx Context
return void

GetArrayElements() public static method

public static GetArrayElements ( Scriptable @object ) : object[]
@object Scriptable
return object[]

GetElemFunctionAndThis() public static method

Prepare for calling obj[id](...): return function corresponding to obj[id] and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
Prepare for calling obj[id](...): return function corresponding to obj[id] and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.
public static GetElemFunctionAndThis ( object obj, object elem, Context cx ) : Callable
obj object
elem object
cx Context
return Callable

GetGlobal() public static method

public static GetGlobal ( Context cx ) : ScriptableObject
cx Context
return ScriptableObject

GetLibraryScopeOrNull() public static method

public static GetLibraryScopeOrNull ( Scriptable scope ) : ScriptableObject
scope Scriptable
return ScriptableObject

GetMessage() public static method

public static GetMessage ( string messageId, object arguments ) : string
messageId string
arguments object
return string

GetMessage0() public static method

public static GetMessage0 ( string messageId ) : string
messageId string
return string

GetMessage1() public static method

public static GetMessage1 ( string messageId, object arg1 ) : string
messageId string
arg1 object
return string

GetMessage2() public static method

public static GetMessage2 ( string messageId, object arg1, object arg2 ) : string
messageId string
arg1 object
arg2 object
return string

GetMessage3() public static method

public static GetMessage3 ( string messageId, object arg1, object arg2, object arg3 ) : string
messageId string
arg1 object
arg2 object
arg3 object
return string

GetMessage4() public static method

public static GetMessage4 ( string messageId, object arg1, object arg2, object arg3, object arg4 ) : string
messageId string
arg1 object
arg2 object
arg3 object
arg4 object
return string

GetNameFunctionAndThis() public static method

Prepare for calling name(...): return function corresponding to name and make current top scope available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
Prepare for calling name(...): return function corresponding to name and make current top scope available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.
public static GetNameFunctionAndThis ( string name, Context cx, Scriptable scope ) : Callable
name string
cx Context
scope Scriptable
return Callable

GetObjectElem() public static method

public static GetObjectElem ( Scriptable obj, object elem, Context cx ) : object
obj Scriptable
elem object
cx Context
return object

GetObjectElem() public static method

Call obj.[[Get]](id)
public static GetObjectElem ( object obj, object elem, Context cx ) : object
obj object
elem object
cx Context
return object

GetObjectElem() public static method

Call obj.[[Get]](id)
public static GetObjectElem ( object obj, object elem, Context cx, Scriptable scope ) : object
obj object
elem object
cx Context
scope Scriptable
return object

GetObjectIndex() public static method

public static GetObjectIndex ( Scriptable obj, int index, Context cx ) : object
obj Scriptable
index int
cx Context
return object

GetObjectIndex() public static method

public static GetObjectIndex ( object obj, double dblIndex, Context cx ) : object
obj object
dblIndex double
cx Context
return object

GetObjectProp() public static method

public static GetObjectProp ( Scriptable obj, string property, Context cx ) : object
obj Scriptable
property string
cx Context
return object

GetObjectProp() public static method

Version of getObjectElem when elem is a valid JS identifier name.
Version of getObjectElem when elem is a valid JS identifier name.
public static GetObjectProp ( object obj, string property, Context cx ) : object
obj object
property string
cx Context
return object

GetObjectProp() public static method

public static GetObjectProp ( object obj, string property, Context cx, Scriptable scope ) : object
obj object
property string
cx Context
scope Scriptable the scope that should be used to resolve primitive prototype
return object

GetObjectPropNoWarn() public static method

public static GetObjectPropNoWarn ( object obj, string property, Context cx ) : object
obj object
property string
cx Context
return object

GetPropFunctionAndThis() public static method

Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method. Warning: this doesn't allow to resolve primitive prototype properly when many top scopes are involved.
public static GetPropFunctionAndThis ( object obj, string property, Context cx ) : Callable
obj object
property string
cx Context
return Callable

GetPropFunctionAndThis() public static method

Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.
public static GetPropFunctionAndThis ( object obj, string property, Context cx, Scriptable scope ) : Callable
obj object
property string
cx Context
scope Scriptable
return Callable

GetRegExpProxy() public static method

public static GetRegExpProxy ( Context cx ) : RegExpProxy
cx Context
return RegExpProxy

GetTopCallScope() public static method

public static GetTopCallScope ( Context cx ) : Scriptable
cx Context
return Scriptable

GetTopLevelProp() public static method

public static GetTopLevelProp ( Scriptable scope, string id ) : object
scope Scriptable
id string
return object

GetValueFunctionAndThis() public static method

Prepare for calling (...): return function corresponding to and make parent scope of the function available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
Prepare for calling (...): return function corresponding to and make parent scope of the function available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.
public static GetValueFunctionAndThis ( object value, Context cx ) : Callable
value object
cx Context
return Callable

HasObjectElem() public static method

public static HasObjectElem ( Scriptable target, object elem, Context cx ) : bool
target Scriptable
elem object
cx Context
return bool

HasTopCall() public static method

public static HasTopCall ( Context cx ) : bool
cx Context
return bool

In() public static method

The in operator.
The in operator. This is a new JS 1.3 language feature. The in operator mirrors the operation of the for .. in construct, and tests whether the rhs has the property given by the lhs. It is different from the for .. in construct in that:
- it doesn't perform ToObject on the right hand side
- it returns true for DontEnum properties.
public static In ( object a, object b, Context cx ) : bool
a object the left hand operand
b object the right hand operand
cx Context
return bool

IndexFromString() public static method

Return -1L if str is not an index, or the index value as lower 32 bits of the result.
Return -1L if str is not an index, or the index value as lower 32 bits of the result. Note that the result needs to be cast to an int in order to produce the actual index, which may be negative.
public static IndexFromString ( string str ) : long
str string
return long

InitFunction() public static method

public static InitFunction ( Context cx, Scriptable scope, NativeFunction function, int type, bool fromEvalCode ) : void
cx Context
scope Scriptable
function NativeFunction
type int
fromEvalCode bool
return void

InitScript() public static method

public static InitScript ( NativeFunction funObj, Scriptable thisObj, Context cx, Scriptable scope, bool evalScript ) : void
funObj NativeFunction
thisObj Scriptable
cx Context
scope Scriptable
evalScript bool
return void

InitStandardObjects() public static method

public static InitStandardObjects ( Context cx, ScriptableObject scope, bool @sealed ) : ScriptableObject
cx Context
scope ScriptableObject
@sealed bool
return ScriptableObject

InstanceOf() public static method

The instanceof operator.
The instanceof operator.
public static InstanceOf ( object a, object b, Context cx ) : bool
a object
b object
cx Context
return bool

IsArrayObject() public static method

public static IsArrayObject ( object obj ) : bool
obj object
return bool

IsJSLineTerminator() public static method

public static IsJSLineTerminator ( int c ) : bool
c int
return bool

IsJSWhitespaceOrLineTerminator() public static method

public static IsJSWhitespaceOrLineTerminator ( int c ) : bool
c int
return bool

IsPrimitive() public static method

public static IsPrimitive ( object obj ) : bool
obj object
return bool

IsRhinoRuntimeType() public static method

public static IsRhinoRuntimeType ( Type cl ) : bool
cl System.Type
return bool

JsDelegatesTo() public static method

Delegates to
public static JsDelegatesTo ( Scriptable lhs, Scriptable rhs ) : bool
lhs Scriptable
rhs Scriptable
return bool

LastStoredScriptable() public static method

public static LastStoredScriptable ( Context cx ) : Scriptable
cx Context
return Scriptable

LastUint32Result() public static method

public static LastUint32Result ( Context cx ) : long
cx Context
return long

LeaveDotQuery() public static method

public static LeaveDotQuery ( Scriptable scope ) : Scriptable
scope Scriptable
return Scriptable

LeaveWith() public static method

public static LeaveWith ( Scriptable scope ) : Scriptable
scope Scriptable
return Scriptable

MemberRef() public static method

public static MemberRef ( object obj, object elem, Context cx, int memberTypeFlags ) : Ref
obj object
elem object
cx Context
memberTypeFlags int
return Ref

MemberRef() public static method

public static MemberRef ( object obj, object @namespace, object elem, Context cx, int memberTypeFlags ) : Ref
obj object
@namespace object
elem object
cx Context
memberTypeFlags int
return Ref

Name() public static method

Looks up a name in the scope chain and returns its value.
Looks up a name in the scope chain and returns its value.
public static Name ( Context cx, Scriptable scope, string name ) : object
cx Context
scope Scriptable
name string
return object

NameIncrDecr() public static method

public static NameIncrDecr ( Scriptable scopeChain, string id, Context cx, int incrDecrMask ) : object
scopeChain Scriptable
id string
cx Context
incrDecrMask int
return object

NameRef() public static method

public static NameRef ( object name, Context cx, Scriptable scope, int memberTypeFlags ) : Ref
name object
cx Context
scope Scriptable
memberTypeFlags int
return Ref

NameRef() public static method

public static NameRef ( object @namespace, object name, Context cx, Scriptable scope, int memberTypeFlags ) : Ref
@namespace object
name object
cx Context
scope Scriptable
memberTypeFlags int
return Ref

NewArrayLiteral() public static method

public static NewArrayLiteral ( object objects, int skipIndices, Context cx, Scriptable scope ) : Scriptable
objects object
skipIndices int
cx Context
scope Scriptable
return Scriptable

NewBuiltinObject() public static method

public static NewBuiltinObject ( Context cx, Scriptable scope, TopLevel type, object args ) : Scriptable
cx Context
scope Scriptable
type TopLevel
args object
return Scriptable

NewCatchScope() public static method

public static NewCatchScope ( Exception t, Scriptable lastCatchScope, string exceptionName, Context cx, Scriptable scope ) : Scriptable
t System.Exception
lastCatchScope Scriptable
exceptionName string
cx Context
scope Scriptable
return Scriptable

NewObject() public static method

public static NewObject ( Context cx, Scriptable scope, string constructorName, object args ) : Scriptable
cx Context
scope Scriptable
constructorName string
args object
return Scriptable

NewObject() public static method

Operator new.
Operator new. See ECMA 11.2.2
public static NewObject ( object fun, Context cx, Scriptable scope, object args ) : Scriptable
fun object
cx Context
scope Scriptable
args object
return Scriptable

NewObjectLiteral() public static method

public static NewObjectLiteral ( object propertyIds, object propertyValues, int getterSetters, Context cx, Scriptable scope ) : Scriptable
propertyIds object
propertyValues object
getterSetters int
cx Context
scope Scriptable
return Scriptable

NewSpecial() public static method

public static NewSpecial ( Context cx, object fun, object args, Scriptable scope, int callType ) : object
cx Context
fun object
args object
scope Scriptable
callType int
return object

NotFoundError() public static method

public static NotFoundError ( Scriptable @object, string property ) : Exception
@object Scriptable
property string
return System.Exception

NotFunctionError() public static method

public static NotFunctionError ( object value ) : Exception
value object
return System.Exception

NotFunctionError() public static method

public static NotFunctionError ( object value, object messageHelper ) : Exception
value object
messageHelper object
return System.Exception

NotFunctionError() public static method

public static NotFunctionError ( object obj, object value, string propertyName ) : Exception
obj object
value object
propertyName string
return System.Exception

NumberToString() public static method

public static NumberToString ( double d, int @base ) : string
d double
@base int
return string

PadArguments() public static method

Helper function for builtin objects that use the varargs form.
Helper function for builtin objects that use the varargs form. ECMA function formal arguments are undefined if not supplied; this function pads the argument array out to the expected length, if necessary.
public static PadArguments ( object args, int count ) : object[]
args object
count int
return object[]

PropIncrDecr() public static method

public static PropIncrDecr ( object obj, string id, Context cx, int incrDecrMask ) : object
obj object
id string
cx Context
incrDecrMask int
return object

RefDel() public static method

public static RefDel ( Ref @ref, Context cx ) : object
@ref Ref
cx Context
return object

RefGet() public static method

public static RefGet ( Ref @ref, Context cx ) : object
@ref Ref
cx Context
return object

RefIncrDecr() public static method

public static RefIncrDecr ( Ref @ref, Context cx, int incrDecrMask ) : object
@ref Ref
cx Context
incrDecrMask int
return object

RefSet() public static method

public static RefSet ( Ref @ref, object value, Context cx ) : object
@ref Ref
value object
cx Context
return object

ScriptRuntime() protected method

No instances should be created.
No instances should be created.
protected ScriptRuntime ( ) : System
return System

SearchDefaultNamespace() public static method

public static SearchDefaultNamespace ( Context cx ) : object
cx Context
return object

SetBuiltinProtoAndParent() public static method

public static SetBuiltinProtoAndParent ( ScriptableObject @object, Scriptable scope, TopLevel type ) : void
@object ScriptableObject
scope Scriptable
type TopLevel
return void

SetConst() public static method

public static SetConst ( Scriptable bound, object value, Context cx, string id ) : object
bound Scriptable
value object
cx Context
id string
return object

SetDefaultNamespace() public static method

public static SetDefaultNamespace ( object @namespace, Context cx ) : object
@namespace object
cx Context
return object

SetEnumNumbers() public static method

public static SetEnumNumbers ( object enumObj, bool enumNumbers ) : void
enumObj object
enumNumbers bool
return void

SetFunctionProtoAndParent() public static method

public static SetFunctionProtoAndParent ( BaseFunction fn, Scriptable scope ) : void
fn BaseFunction
scope Scriptable
return void

SetName() public static method

public static SetName ( Scriptable bound, object value, Context cx, Scriptable scope, string id ) : object
bound Scriptable
value object
cx Context
scope Scriptable
id string
return object

SetObjectElem() public static method

public static SetObjectElem ( Scriptable obj, object elem, object value, Context cx ) : object
obj Scriptable
elem object
value object
cx Context
return object

SetObjectElem() public static method

public static SetObjectElem ( object obj, object elem, object value, Context cx ) : object
obj object
elem object
value object
cx Context
return object

SetObjectIndex() public static method

public static SetObjectIndex ( Scriptable obj, int index, object value, Context cx ) : object
obj Scriptable
index int
value object
cx Context
return object

SetObjectIndex() public static method

public static SetObjectIndex ( object obj, double dblIndex, object value, Context cx ) : object
obj object
dblIndex double
value object
cx Context
return object

SetObjectProp() public static method

public static SetObjectProp ( Scriptable obj, string property, object value, Context cx ) : object
obj Scriptable
property string
value object
cx Context
return object

SetObjectProp() public static method

Version of setObjectElem when elem is a valid JS identifier name.
Version of setObjectElem when elem is a valid JS identifier name.
public static SetObjectProp ( object obj, string property, object value, Context cx ) : object
obj object
property string
value object
cx Context
return object

SetObjectProtoAndParent() public static method

public static SetObjectProtoAndParent ( ScriptableObject @object, Scriptable scope ) : void
@object ScriptableObject
scope Scriptable
return void

SetRegExpProxy() public static method

public static SetRegExpProxy ( Context cx, RegExpProxy proxy ) : void
cx Context
proxy RegExpProxy
return void

ShallowEq() public static method

public static ShallowEq ( object x, object y ) : bool
x object
y object
return bool

SpecialRef() public static method

public static SpecialRef ( object obj, string specialProperty, Context cx ) : Ref
obj object
specialProperty string
cx Context
return Ref

StoreUint32Result() public static method

public static StoreUint32Result ( Context cx, long value ) : void
cx Context
value long
return void

StrictSetName() public static method

public static StrictSetName ( Scriptable bound, object value, Context cx, Scriptable scope, string id ) : object
bound Scriptable
value object
cx Context
scope Scriptable
id string
return object

TestUint32String() public static method

If str is a decimal presentation of Uint32 value, return it as long.
If str is a decimal presentation of Uint32 value, return it as long. Othewise return -1L;
public static TestUint32String ( string str ) : long
str string
return long

ThrowError() public static method

Equivalent to executing "new Error(message)" from JavaScript.
Equivalent to executing "new Error(message)" from JavaScript.
public static ThrowError ( Context cx, Scriptable scope, string message ) : JavaScriptException
cx Context the current context
scope Scriptable the current scope
message string the message
return JavaScriptException

ToBoolean() public static method

Convert the value to a boolean.
Convert the value to a boolean. See ECMA 9.2.
public static ToBoolean ( object val ) : bool
val object
return bool

ToCharSequence() public static method

public static ToCharSequence ( object val ) : Sharpen.CharSequence
val object
return Sharpen.CharSequence

ToInt32() public static method

public static ToInt32 ( double d ) : int
d double
return int

ToInt32() public static method

See ECMA 9.5.
See ECMA 9.5.
public static ToInt32 ( object val ) : int
val object
return int

ToInt32() public static method

public static ToInt32 ( object args, int index ) : int
args object
index int
return int

ToInteger() public static method

public static ToInteger ( double d ) : double
d double
return double

ToInteger() public static method

See ECMA 9.4.
See ECMA 9.4.
public static ToInteger ( object val ) : double
val object
return double

ToInteger() public static method

public static ToInteger ( object args, int index ) : double
args object
index int
return double

ToIterator() public static method

public static ToIterator ( Context cx, Scriptable scope, Scriptable obj, bool keyOnly ) : Scriptable
cx Context
scope Scriptable
obj Scriptable
keyOnly bool
return Scriptable

ToNumber() public static method

Convert the value to a number.
Convert the value to a number. See ECMA 9.3.
public static ToNumber ( object val ) : double
val object
return double

ToNumber() public static method

public static ToNumber ( object args, int index ) : double
args object
index int
return double

ToNumber() public static method

ToNumber applied to the String type See ECMA 9.3.1
public static ToNumber ( string s ) : double
s string
return double

ToObject() public static method

Convert the value to an object.
Convert the value to an object. See ECMA 9.9.
public static ToObject ( Context cx, Scriptable scope, object val ) : Scriptable
cx Context
scope Scriptable
val object
return Scriptable

ToObject() public static method

public static ToObject ( Scriptable scope, object val ) : Scriptable
scope Scriptable
val object
return Scriptable

ToObjectOrNull() public static method

Warning: this doesn't allow to resolve primitive prototype properly when many top scopes are involved
public static ToObjectOrNull ( Context cx, object obj ) : Scriptable
cx Context
obj object
return Scriptable

ToObjectOrNull() public static method

public static ToObjectOrNull ( Context cx, object obj, Scriptable scope ) : Scriptable
cx Context
obj object
scope Scriptable the scope that should be used to resolve primitive prototype
return Scriptable

ToPrimitive() public static method

public static ToPrimitive ( object val ) : object
val object
return object

ToPrimitive() public static method

public static ToPrimitive ( object val, Type typeHint ) : object
val object
typeHint System.Type
return object

ToString() public static method

Optimized version of toString(Object) for numbers.
Optimized version of toString(Object) for numbers.
public static ToString ( double val ) : string
val double
return string

ToString() public static method

Convert the value to a string.
Convert the value to a string. See ECMA 9.8.
public static ToString ( object val ) : string
val object
return string

ToString() public static method

public static ToString ( object args, int index ) : string
args object
index int
return string

ToUint16() public static method

See ECMA 9.7.
See ECMA 9.7.
public static ToUint16 ( object val ) : char
val object
return char

ToUint32() public static method

See ECMA 9.6.
See ECMA 9.6.
public static ToUint32 ( double d ) : long
d double
return long

ToUint32() public static method

public static ToUint32 ( object val ) : long
val object
return long

TypeError() public static method

public static TypeError ( string message ) : EcmaError
message string
return EcmaError

TypeError0() public static method

public static TypeError0 ( string messageId ) : EcmaError
messageId string
return EcmaError

TypeError1() public static method

public static TypeError1 ( string messageId, string arg1 ) : EcmaError
messageId string
arg1 string
return EcmaError

TypeError2() public static method

public static TypeError2 ( string messageId, string arg1, string arg2 ) : EcmaError
messageId string
arg1 string
arg2 string
return EcmaError

TypeError3() public static method

public static TypeError3 ( string messageId, string arg1, string arg2, string arg3 ) : EcmaError
messageId string
arg1 string
arg2 string
arg3 string
return EcmaError

TypeErrorThrower() public static method

Returns representation of the [[ThrowTypeError]] object.
Returns representation of the [[ThrowTypeError]] object. See ECMA 5 spec, 13.2.3
public static TypeErrorThrower ( ) : BaseFunction
return BaseFunction

Typeof() public static method

The typeof operator
public static Typeof ( object value ) : string
value object
return string

TypeofName() public static method

The typeof operator that correctly handles the undefined case
public static TypeofName ( Scriptable scope, string id ) : string
scope Scriptable
id string
return string

UndefCallError() public static method

public static UndefCallError ( object @object, object id ) : Exception
@object object
id object
return System.Exception

UndefReadError() public static method

public static UndefReadError ( object @object, object id ) : Exception
@object object
id object
return System.Exception

UndefWriteError() public static method

public static UndefWriteError ( object @object, object id, object value ) : Exception
@object object
id object
value object
return System.Exception

UpdateDotQuery() public static method

public static UpdateDotQuery ( bool value, Scriptable scope ) : object
value bool
scope Scriptable
return object

WrapBoolean() public static method

public static WrapBoolean ( bool b ) : bool
b bool
return bool

WrapException() public static method

public static WrapException ( Exception t, Scriptable scope, Context cx ) : Scriptable
t System.Exception
scope Scriptable
cx Context
return Scriptable

WrapInt() public static method

public static WrapInt ( int i ) : int
i int
return int

WrapNumber() public static method

public static WrapNumber ( double x ) : Number
x double
return Number

WrapRegExp() public static method

public static WrapRegExp ( Context cx, Scriptable scope, object compiled ) : Scriptable
cx Context
scope Scriptable
compiled object
return Scriptable

Property Details

BooleanClass public static property

public static Type,System BooleanClass
return System.Type

ByteClass public static property

public static Type,System ByteClass
return System.Type

CharacterClass public static property

public static Type,System CharacterClass
return System.Type

ClassClass public static property

public static Type,System ClassClass
return System.Type

ContextClass public static property

public static Type,System ContextClass
return System.Type

ContextFactoryClass public static property

public static Type,System ContextFactoryClass
return System.Type

DateClass public static property

public static Type,System DateClass
return System.Type

DoubleClass public static property

public static Type,System DoubleClass
return System.Type

FloatClass public static property

public static Type,System FloatClass
return System.Type

FunctionClass public static property

public static Type,System FunctionClass
return System.Type

IntegerClass public static property

public static Type,System IntegerClass
return System.Type

LongClass public static property

public static Type,System LongClass
return System.Type

NaN public static property

public static double NaN
return double

NaNobj public static property

public static double NaNobj
return double

NumberClass public static property

public static Type,System NumberClass
return System.Type

ObjectClass public static property

public static Type,System ObjectClass
return System.Type

ROOT_LOCALE public static property

public static CultureInfo,System.Globalization ROOT_LOCALE
return System.Globalization.CultureInfo

ScriptableClass public static property

public static Type,System ScriptableClass
return System.Type

ScriptableObjectClass public static property

public static Type,System ScriptableObjectClass
return System.Type

ShortClass public static property

public static Type,System ShortClass
return System.Type

StringClass public static property

public static Type,System StringClass
return System.Type

emptyArgs public static property

public static object[] emptyArgs
return object[]

emptyStrings public static property

public static string[] emptyStrings
return string[]

messageProvider public static property

public static ScriptRuntime.MessageProvider messageProvider
return ScriptRuntime.MessageProvider

negativeZero public static property

public static double negativeZero
return double