C# Class Rhino.ScriptRuntime

This is the class that implements the runtime.
This is the class that implements the runtime.
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
ScriptRuntime ( ) : System

No instances should be created.

No instances should be created.

Private Methods

Méthode 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 méthode

public static Add ( Sharpen.CharSequence val1, object val2 ) : Sharpen.CharSequence
val1 Sharpen.CharSequence
val2 object
Résultat Sharpen.CharSequence

Add() public static méthode

public static Add ( object val1, Sharpen.CharSequence val2 ) : Sharpen.CharSequence
val1 object
val2 Sharpen.CharSequence
Résultat Sharpen.CharSequence

Add() public static méthode

public static Add ( object val1, object val2, Context cx ) : object
val1 object
val2 object
cx Context
Résultat object

AddInstructionCount() public static méthode

public static AddInstructionCount ( Context cx, int instructionsToAdd ) : void
cx Context
instructionsToAdd int
Résultat void

ApplyOrCall() public static méthode

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
Résultat object

Bind() public static méthode

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
Résultat Scriptable

CallRef() public static méthode

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
Résultat Ref

CallSpecial() public static méthode

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
Résultat object

CheckRegExpProxy() public static méthode

public static CheckRegExpProxy ( Context cx ) : RegExpProxy
cx Context
Résultat RegExpProxy

Cmp_LE() public static méthode

public static Cmp_LE ( object val1, object val2 ) : bool
val1 object
val2 object
Résultat bool

Cmp_LT() public static méthode

public static Cmp_LT ( object val1, object val2 ) : bool
val1 object
val2 object
Résultat bool

ConstructError() public static méthode

public static ConstructError ( string error, string message ) : EcmaError
error string
message string
Résultat EcmaError

ConstructError() public static méthode

public static ConstructError ( string error, string message, int lineNumberDelta ) : EcmaError
error string
message string
lineNumberDelta int
Résultat EcmaError

ConstructError() public static méthode

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
Résultat EcmaError

CreateFunctionActivation() public static méthode

public static CreateFunctionActivation ( NativeFunction funObj, Scriptable scope, object args ) : Scriptable
funObj NativeFunction
scope Scriptable
args object
Résultat Scriptable

Delete() public static méthode

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
Résultat object

DeleteObjectElem() public static méthode

public static DeleteObjectElem ( Scriptable target, object elem, Context cx ) : bool
target Scriptable
elem object
cx Context
Résultat bool

DoTopCall() public static méthode

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

ElemIncrDecr() public static méthode

public static ElemIncrDecr ( object obj, object index, Context cx, int incrDecrMask ) : object
obj object
index object
cx Context
incrDecrMask int
Résultat object

EnterActivationFunction() public static méthode

public static EnterActivationFunction ( Context cx, Scriptable scope ) : void
cx Context
scope Scriptable
Résultat void

EnterDotQuery() public static méthode

public static EnterDotQuery ( object value, Scriptable scope ) : Scriptable
value object
scope Scriptable
Résultat Scriptable

EnterWith() public static méthode

public static EnterWith ( object obj, Context cx, Scriptable scope ) : Scriptable
obj object
cx Context
scope Scriptable
Résultat Scriptable

EnumId() public static méthode

public static EnumId ( object enumObj, Context cx ) : object
enumObj object
cx Context
Résultat object

EnumInit() public static méthode

public static EnumInit ( object value, Context cx, bool enumValues ) : object
value object
cx Context
enumValues bool
Résultat object

EnumInit() public static méthode

public static EnumInit ( object value, Context cx, int enumType ) : object
value object
cx Context
enumType int
Résultat object

EnumNext() public static méthode

public static EnumNext ( object enumObj ) : bool
enumObj object
Résultat bool

EnumValue() public static méthode

public static EnumValue ( object enumObj, Context cx ) : object
enumObj object
cx Context
Résultat object

Eq() public static méthode

Equality See ECMA 11.9
public static Eq ( object x, object y ) : bool
x object
y object
Résultat bool

EscapeAttributeValue() public static méthode

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

EscapeString() public static méthode

public static EscapeString ( string s ) : string
s string
Résultat string

EscapeString() public static méthode

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
Résultat string

EscapeTextValue() public static méthode

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
Résultat string

EvalSpecial() public static méthode

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
Résultat object

ExitActivationFunction() public static méthode

public static ExitActivationFunction ( Context cx ) : void
cx Context
Résultat void

GetArrayElements() public static méthode

public static GetArrayElements ( Scriptable @object ) : object[]
@object Scriptable
Résultat object[]

GetElemFunctionAndThis() public static méthode

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
Résultat Callable

GetGlobal() public static méthode

public static GetGlobal ( Context cx ) : ScriptableObject
cx Context
Résultat ScriptableObject

GetLibraryScopeOrNull() public static méthode

public static GetLibraryScopeOrNull ( Scriptable scope ) : ScriptableObject
scope Scriptable
Résultat ScriptableObject

GetMessage() public static méthode

public static GetMessage ( string messageId, object arguments ) : string
messageId string
arguments object
Résultat string

GetMessage0() public static méthode

public static GetMessage0 ( string messageId ) : string
messageId string
Résultat string

GetMessage1() public static méthode

public static GetMessage1 ( string messageId, object arg1 ) : string
messageId string
arg1 object
Résultat string

GetMessage2() public static méthode

public static GetMessage2 ( string messageId, object arg1, object arg2 ) : string
messageId string
arg1 object
arg2 object
Résultat string

GetMessage3() public static méthode

public static GetMessage3 ( string messageId, object arg1, object arg2, object arg3 ) : string
messageId string
arg1 object
arg2 object
arg3 object
Résultat string

GetMessage4() public static méthode

public static GetMessage4 ( string messageId, object arg1, object arg2, object arg3, object arg4 ) : string
messageId string
arg1 object
arg2 object
arg3 object
arg4 object
Résultat string

GetNameFunctionAndThis() public static méthode

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
Résultat Callable

GetObjectElem() public static méthode

public static GetObjectElem ( Scriptable obj, object elem, Context cx ) : object
obj Scriptable
elem object
cx Context
Résultat object

GetObjectElem() public static méthode

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

GetObjectElem() public static méthode

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

GetObjectIndex() public static méthode

public static GetObjectIndex ( Scriptable obj, int index, Context cx ) : object
obj Scriptable
index int
cx Context
Résultat object

GetObjectIndex() public static méthode

public static GetObjectIndex ( object obj, double dblIndex, Context cx ) : object
obj object
dblIndex double
cx Context
Résultat object

GetObjectProp() public static méthode

public static GetObjectProp ( Scriptable obj, string property, Context cx ) : object
obj Scriptable
property string
cx Context
Résultat object

GetObjectProp() public static méthode

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
Résultat object

GetObjectProp() public static méthode

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
Résultat object

GetObjectPropNoWarn() public static méthode

public static GetObjectPropNoWarn ( object obj, string property, Context cx ) : object
obj object
property string
cx Context
Résultat object

GetPropFunctionAndThis() public static méthode

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
Résultat Callable

GetPropFunctionAndThis() public static méthode

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
Résultat Callable

GetRegExpProxy() public static méthode

public static GetRegExpProxy ( Context cx ) : RegExpProxy
cx Context
Résultat RegExpProxy

GetTopCallScope() public static méthode

public static GetTopCallScope ( Context cx ) : Scriptable
cx Context
Résultat Scriptable

GetTopLevelProp() public static méthode

public static GetTopLevelProp ( Scriptable scope, string id ) : object
scope Scriptable
id string
Résultat object

GetValueFunctionAndThis() public static méthode

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
Résultat Callable

HasObjectElem() public static méthode

public static HasObjectElem ( Scriptable target, object elem, Context cx ) : bool
target Scriptable
elem object
cx Context
Résultat bool

HasTopCall() public static méthode

public static HasTopCall ( Context cx ) : bool
cx Context
Résultat bool

In() public static méthode

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
Résultat bool

IndexFromString() public static méthode

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
Résultat long

InitFunction() public static méthode

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

InitScript() public static méthode

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

InitStandardObjects() public static méthode

public static InitStandardObjects ( Context cx, ScriptableObject scope, bool @sealed ) : ScriptableObject
cx Context
scope ScriptableObject
@sealed bool
Résultat ScriptableObject

InstanceOf() public static méthode

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

IsArrayObject() public static méthode

public static IsArrayObject ( object obj ) : bool
obj object
Résultat bool

IsJSLineTerminator() public static méthode

public static IsJSLineTerminator ( int c ) : bool
c int
Résultat bool

IsJSWhitespaceOrLineTerminator() public static méthode

public static IsJSWhitespaceOrLineTerminator ( int c ) : bool
c int
Résultat bool

IsPrimitive() public static méthode

public static IsPrimitive ( object obj ) : bool
obj object
Résultat bool

IsRhinoRuntimeType() public static méthode

public static IsRhinoRuntimeType ( Type cl ) : bool
cl System.Type
Résultat bool

JsDelegatesTo() public static méthode

Delegates to
public static JsDelegatesTo ( Scriptable lhs, Scriptable rhs ) : bool
lhs Scriptable
rhs Scriptable
Résultat bool

LastStoredScriptable() public static méthode

public static LastStoredScriptable ( Context cx ) : Scriptable
cx Context
Résultat Scriptable

LastUint32Result() public static méthode

public static LastUint32Result ( Context cx ) : long
cx Context
Résultat long

LeaveDotQuery() public static méthode

public static LeaveDotQuery ( Scriptable scope ) : Scriptable
scope Scriptable
Résultat Scriptable

LeaveWith() public static méthode

public static LeaveWith ( Scriptable scope ) : Scriptable
scope Scriptable
Résultat Scriptable

MemberRef() public static méthode

public static MemberRef ( object obj, object elem, Context cx, int memberTypeFlags ) : Ref
obj object
elem object
cx Context
memberTypeFlags int
Résultat Ref

MemberRef() public static méthode

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

Name() public static méthode

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
Résultat object

NameIncrDecr() public static méthode

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

NameRef() public static méthode

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

NameRef() public static méthode

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

NewArrayLiteral() public static méthode

public static NewArrayLiteral ( object objects, int skipIndices, Context cx, Scriptable scope ) : Scriptable
objects object
skipIndices int
cx Context
scope Scriptable
Résultat Scriptable

NewBuiltinObject() public static méthode

public static NewBuiltinObject ( Context cx, Scriptable scope, TopLevel type, object args ) : Scriptable
cx Context
scope Scriptable
type TopLevel
args object
Résultat Scriptable

NewCatchScope() public static méthode

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
Résultat Scriptable

NewObject() public static méthode

public static NewObject ( Context cx, Scriptable scope, string constructorName, object args ) : Scriptable
cx Context
scope Scriptable
constructorName string
args object
Résultat Scriptable

NewObject() public static méthode

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
Résultat Scriptable

NewObjectLiteral() public static méthode

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

NewSpecial() public static méthode

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

NotFoundError() public static méthode

public static NotFoundError ( Scriptable @object, string property ) : Exception
@object Scriptable
property string
Résultat System.Exception

NotFunctionError() public static méthode

public static NotFunctionError ( object value ) : Exception
value object
Résultat System.Exception

NotFunctionError() public static méthode

public static NotFunctionError ( object value, object messageHelper ) : Exception
value object
messageHelper object
Résultat System.Exception

NotFunctionError() public static méthode

public static NotFunctionError ( object obj, object value, string propertyName ) : Exception
obj object
value object
propertyName string
Résultat System.Exception

NumberToString() public static méthode

public static NumberToString ( double d, int @base ) : string
d double
@base int
Résultat string

PadArguments() public static méthode

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
Résultat object[]

PropIncrDecr() public static méthode

public static PropIncrDecr ( object obj, string id, Context cx, int incrDecrMask ) : object
obj object
id string
cx Context
incrDecrMask int
Résultat object

RefDel() public static méthode

public static RefDel ( Ref @ref, Context cx ) : object
@ref Ref
cx Context
Résultat object

RefGet() public static méthode

public static RefGet ( Ref @ref, Context cx ) : object
@ref Ref
cx Context
Résultat object

RefIncrDecr() public static méthode

public static RefIncrDecr ( Ref @ref, Context cx, int incrDecrMask ) : object
@ref Ref
cx Context
incrDecrMask int
Résultat object

RefSet() public static méthode

public static RefSet ( Ref @ref, object value, Context cx ) : object
@ref Ref
value object
cx Context
Résultat object

ScriptRuntime() protected méthode

No instances should be created.
No instances should be created.
protected ScriptRuntime ( ) : System
Résultat System

SearchDefaultNamespace() public static méthode

public static SearchDefaultNamespace ( Context cx ) : object
cx Context
Résultat object

SetBuiltinProtoAndParent() public static méthode

public static SetBuiltinProtoAndParent ( ScriptableObject @object, Scriptable scope, TopLevel type ) : void
@object ScriptableObject
scope Scriptable
type TopLevel
Résultat void

SetConst() public static méthode

public static SetConst ( Scriptable bound, object value, Context cx, string id ) : object
bound Scriptable
value object
cx Context
id string
Résultat object

SetDefaultNamespace() public static méthode

public static SetDefaultNamespace ( object @namespace, Context cx ) : object
@namespace object
cx Context
Résultat object

SetEnumNumbers() public static méthode

public static SetEnumNumbers ( object enumObj, bool enumNumbers ) : void
enumObj object
enumNumbers bool
Résultat void

SetFunctionProtoAndParent() public static méthode

public static SetFunctionProtoAndParent ( BaseFunction fn, Scriptable scope ) : void
fn BaseFunction
scope Scriptable
Résultat void

SetName() public static méthode

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

SetObjectElem() public static méthode

public static SetObjectElem ( Scriptable obj, object elem, object value, Context cx ) : object
obj Scriptable
elem object
value object
cx Context
Résultat object

SetObjectElem() public static méthode

public static SetObjectElem ( object obj, object elem, object value, Context cx ) : object
obj object
elem object
value object
cx Context
Résultat object

SetObjectIndex() public static méthode

public static SetObjectIndex ( Scriptable obj, int index, object value, Context cx ) : object
obj Scriptable
index int
value object
cx Context
Résultat object

SetObjectIndex() public static méthode

public static SetObjectIndex ( object obj, double dblIndex, object value, Context cx ) : object
obj object
dblIndex double
value object
cx Context
Résultat object

SetObjectProp() public static méthode

public static SetObjectProp ( Scriptable obj, string property, object value, Context cx ) : object
obj Scriptable
property string
value object
cx Context
Résultat object

SetObjectProp() public static méthode

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
Résultat object

SetObjectProtoAndParent() public static méthode

public static SetObjectProtoAndParent ( ScriptableObject @object, Scriptable scope ) : void
@object ScriptableObject
scope Scriptable
Résultat void

SetRegExpProxy() public static méthode

public static SetRegExpProxy ( Context cx, RegExpProxy proxy ) : void
cx Context
proxy RegExpProxy
Résultat void

ShallowEq() public static méthode

public static ShallowEq ( object x, object y ) : bool
x object
y object
Résultat bool

SpecialRef() public static méthode

public static SpecialRef ( object obj, string specialProperty, Context cx ) : Ref
obj object
specialProperty string
cx Context
Résultat Ref

StoreUint32Result() public static méthode

public static StoreUint32Result ( Context cx, long value ) : void
cx Context
value long
Résultat void

StrictSetName() public static méthode

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

TestUint32String() public static méthode

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
Résultat long

ThrowError() public static méthode

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
Résultat JavaScriptException

ToBoolean() public static méthode

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

ToCharSequence() public static méthode

public static ToCharSequence ( object val ) : Sharpen.CharSequence
val object
Résultat Sharpen.CharSequence

ToInt32() public static méthode

public static ToInt32 ( double d ) : int
d double
Résultat int

ToInt32() public static méthode

See ECMA 9.5.
See ECMA 9.5.
public static ToInt32 ( object val ) : int
val object
Résultat int

ToInt32() public static méthode

public static ToInt32 ( object args, int index ) : int
args object
index int
Résultat int

ToInteger() public static méthode

public static ToInteger ( double d ) : double
d double
Résultat double

ToInteger() public static méthode

See ECMA 9.4.
See ECMA 9.4.
public static ToInteger ( object val ) : double
val object
Résultat double

ToInteger() public static méthode

public static ToInteger ( object args, int index ) : double
args object
index int
Résultat double

ToIterator() public static méthode

public static ToIterator ( Context cx, Scriptable scope, Scriptable obj, bool keyOnly ) : Scriptable
cx Context
scope Scriptable
obj Scriptable
keyOnly bool
Résultat Scriptable

ToNumber() public static méthode

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

ToNumber() public static méthode

public static ToNumber ( object args, int index ) : double
args object
index int
Résultat double

ToNumber() public static méthode

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

ToObject() public static méthode

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
Résultat Scriptable

ToObject() public static méthode

public static ToObject ( Scriptable scope, object val ) : Scriptable
scope Scriptable
val object
Résultat Scriptable

ToObjectOrNull() public static méthode

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
Résultat Scriptable

ToObjectOrNull() public static méthode

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
Résultat Scriptable

ToPrimitive() public static méthode

public static ToPrimitive ( object val ) : object
val object
Résultat object

ToPrimitive() public static méthode

public static ToPrimitive ( object val, Type typeHint ) : object
val object
typeHint System.Type
Résultat object

ToString() public static méthode

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

ToString() public static méthode

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

ToString() public static méthode

public static ToString ( object args, int index ) : string
args object
index int
Résultat string

ToUint16() public static méthode

See ECMA 9.7.
See ECMA 9.7.
public static ToUint16 ( object val ) : char
val object
Résultat char

ToUint32() public static méthode

See ECMA 9.6.
See ECMA 9.6.
public static ToUint32 ( double d ) : long
d double
Résultat long

ToUint32() public static méthode

public static ToUint32 ( object val ) : long
val object
Résultat long

TypeError() public static méthode

public static TypeError ( string message ) : EcmaError
message string
Résultat EcmaError

TypeError0() public static méthode

public static TypeError0 ( string messageId ) : EcmaError
messageId string
Résultat EcmaError

TypeError1() public static méthode

public static TypeError1 ( string messageId, string arg1 ) : EcmaError
messageId string
arg1 string
Résultat EcmaError

TypeError2() public static méthode

public static TypeError2 ( string messageId, string arg1, string arg2 ) : EcmaError
messageId string
arg1 string
arg2 string
Résultat EcmaError

TypeError3() public static méthode

public static TypeError3 ( string messageId, string arg1, string arg2, string arg3 ) : EcmaError
messageId string
arg1 string
arg2 string
arg3 string
Résultat EcmaError

TypeErrorThrower() public static méthode

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

Typeof() public static méthode

The typeof operator
public static Typeof ( object value ) : string
value object
Résultat string

TypeofName() public static méthode

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

UndefCallError() public static méthode

public static UndefCallError ( object @object, object id ) : Exception
@object object
id object
Résultat System.Exception

UndefReadError() public static méthode

public static UndefReadError ( object @object, object id ) : Exception
@object object
id object
Résultat System.Exception

UndefWriteError() public static méthode

public static UndefWriteError ( object @object, object id, object value ) : Exception
@object object
id object
value object
Résultat System.Exception

UpdateDotQuery() public static méthode

public static UpdateDotQuery ( bool value, Scriptable scope ) : object
value bool
scope Scriptable
Résultat object

WrapBoolean() public static méthode

public static WrapBoolean ( bool b ) : bool
b bool
Résultat bool

WrapException() public static méthode

public static WrapException ( Exception t, Scriptable scope, Context cx ) : Scriptable
t System.Exception
scope Scriptable
cx Context
Résultat Scriptable

WrapInt() public static méthode

public static WrapInt ( int i ) : int
i int
Résultat int

WrapNumber() public static méthode

public static WrapNumber ( double x ) : Number
x double
Résultat Number

WrapRegExp() public static méthode

public static WrapRegExp ( Context cx, Scriptable scope, object compiled ) : Scriptable
cx Context
scope Scriptable
compiled object
Résultat Scriptable

Property Details

BooleanClass public_oe static_oe property

public static Type,System BooleanClass
Résultat System.Type

ByteClass public_oe static_oe property

public static Type,System ByteClass
Résultat System.Type

CharacterClass public_oe static_oe property

public static Type,System CharacterClass
Résultat System.Type

ClassClass public_oe static_oe property

public static Type,System ClassClass
Résultat System.Type

ContextClass public_oe static_oe property

public static Type,System ContextClass
Résultat System.Type

ContextFactoryClass public_oe static_oe property

public static Type,System ContextFactoryClass
Résultat System.Type

DateClass public_oe static_oe property

public static Type,System DateClass
Résultat System.Type

DoubleClass public_oe static_oe property

public static Type,System DoubleClass
Résultat System.Type

FloatClass public_oe static_oe property

public static Type,System FloatClass
Résultat System.Type

FunctionClass public_oe static_oe property

public static Type,System FunctionClass
Résultat System.Type

IntegerClass public_oe static_oe property

public static Type,System IntegerClass
Résultat System.Type

LongClass public_oe static_oe property

public static Type,System LongClass
Résultat System.Type

NaN public_oe static_oe property

public static double NaN
Résultat double

NaNobj public_oe static_oe property

public static double NaNobj
Résultat double

NumberClass public_oe static_oe property

public static Type,System NumberClass
Résultat System.Type

ObjectClass public_oe static_oe property

public static Type,System ObjectClass
Résultat System.Type

ROOT_LOCALE public_oe static_oe property

public static CultureInfo,System.Globalization ROOT_LOCALE
Résultat System.Globalization.CultureInfo

ScriptableClass public_oe static_oe property

public static Type,System ScriptableClass
Résultat System.Type

ScriptableObjectClass public_oe static_oe property

public static Type,System ScriptableObjectClass
Résultat System.Type

ShortClass public_oe static_oe property

public static Type,System ShortClass
Résultat System.Type

StringClass public_oe static_oe property

public static Type,System StringClass
Résultat System.Type

emptyArgs public_oe static_oe property

public static object[] emptyArgs
Résultat object[]

emptyStrings public_oe static_oe property

public static string[] emptyStrings
Résultat string[]

messageProvider public_oe static_oe property

public static ScriptRuntime.MessageProvider messageProvider
Résultat ScriptRuntime.MessageProvider

negativeZero public_oe static_oe property

public static double negativeZero
Résultat double