C# Класс Rhino.ScriptRuntime

This is the class that implements the runtime.
This is the class that implements the runtime.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
ScriptRuntime ( ) : System

No instances should be created.

No instances should be created.

Приватные методы

Метод Описание
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

Описание методов

Add() публичный статический Метод

public static Add ( Sharpen.CharSequence val1, object val2 ) : Sharpen.CharSequence
val1 Sharpen.CharSequence
val2 object
Результат Sharpen.CharSequence

Add() публичный статический Метод

public static Add ( object val1, Sharpen.CharSequence val2 ) : Sharpen.CharSequence
val1 object
val2 Sharpen.CharSequence
Результат Sharpen.CharSequence

Add() публичный статический Метод

public static Add ( object val1, object val2, Context cx ) : object
val1 object
val2 object
cx Context
Результат object

AddInstructionCount() публичный статический Метод

public static AddInstructionCount ( Context cx, int instructionsToAdd ) : void
cx Context
instructionsToAdd int
Результат void

ApplyOrCall() публичный статический Метод

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
Результат object

Bind() публичный статический Метод

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
Результат Scriptable

CallRef() публичный статический Метод

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
Результат Ref

CallSpecial() публичный статический Метод

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
Результат object

CheckRegExpProxy() публичный статический Метод

public static CheckRegExpProxy ( Context cx ) : RegExpProxy
cx Context
Результат RegExpProxy

Cmp_LE() публичный статический Метод

public static Cmp_LE ( object val1, object val2 ) : bool
val1 object
val2 object
Результат bool

Cmp_LT() публичный статический Метод

public static Cmp_LT ( object val1, object val2 ) : bool
val1 object
val2 object
Результат bool

ConstructError() публичный статический Метод

public static ConstructError ( string error, string message ) : EcmaError
error string
message string
Результат EcmaError

ConstructError() публичный статический Метод

public static ConstructError ( string error, string message, int lineNumberDelta ) : EcmaError
error string
message string
lineNumberDelta int
Результат EcmaError

ConstructError() публичный статический Метод

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
Результат EcmaError

CreateFunctionActivation() публичный статический Метод

public static CreateFunctionActivation ( NativeFunction funObj, Scriptable scope, object args ) : Scriptable
funObj NativeFunction
scope Scriptable
args object
Результат Scriptable

Delete() публичный статический Метод

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
Результат object

DeleteObjectElem() публичный статический Метод

public static DeleteObjectElem ( Scriptable target, object elem, Context cx ) : bool
target Scriptable
elem object
cx Context
Результат bool

DoTopCall() публичный статический Метод

public static DoTopCall ( Callable callable, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
callable Callable
cx Context
scope Scriptable
thisObj Scriptable
args object
Результат object

ElemIncrDecr() публичный статический Метод

public static ElemIncrDecr ( object obj, object index, Context cx, int incrDecrMask ) : object
obj object
index object
cx Context
incrDecrMask int
Результат object

EnterActivationFunction() публичный статический Метод

public static EnterActivationFunction ( Context cx, Scriptable scope ) : void
cx Context
scope Scriptable
Результат void

EnterDotQuery() публичный статический Метод

public static EnterDotQuery ( object value, Scriptable scope ) : Scriptable
value object
scope Scriptable
Результат Scriptable

EnterWith() публичный статический Метод

public static EnterWith ( object obj, Context cx, Scriptable scope ) : Scriptable
obj object
cx Context
scope Scriptable
Результат Scriptable

EnumId() публичный статический Метод

public static EnumId ( object enumObj, Context cx ) : object
enumObj object
cx Context
Результат object

EnumInit() публичный статический Метод

public static EnumInit ( object value, Context cx, bool enumValues ) : object
value object
cx Context
enumValues bool
Результат object

EnumInit() публичный статический Метод

public static EnumInit ( object value, Context cx, int enumType ) : object
value object
cx Context
enumType int
Результат object

EnumNext() публичный статический Метод

public static EnumNext ( object enumObj ) : bool
enumObj object
Результат bool

EnumValue() публичный статический Метод

public static EnumValue ( object enumObj, Context cx ) : object
enumObj object
cx Context
Результат object

Eq() публичный статический Метод

Equality See ECMA 11.9
public static Eq ( object x, object y ) : bool
x object
y object
Результат bool

EscapeAttributeValue() публичный статический Метод

Escapes the reserved characters in a value of an attribute
public static EscapeAttributeValue ( object value, Context cx ) : string
value object Unescaped text
cx Context
Результат string

EscapeString() публичный статический Метод

public static EscapeString ( string s ) : string
s string
Результат string

EscapeString() публичный статический Метод

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
Результат string

EscapeTextValue() публичный статический Метод

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
Результат string

EvalSpecial() публичный статический Метод

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
Результат object

ExitActivationFunction() публичный статический Метод

public static ExitActivationFunction ( Context cx ) : void
cx Context
Результат void

GetArrayElements() публичный статический Метод

public static GetArrayElements ( Scriptable @object ) : object[]
@object Scriptable
Результат object[]

GetElemFunctionAndThis() публичный статический Метод

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
Результат Callable

GetGlobal() публичный статический Метод

public static GetGlobal ( Context cx ) : ScriptableObject
cx Context
Результат ScriptableObject

GetLibraryScopeOrNull() публичный статический Метод

public static GetLibraryScopeOrNull ( Scriptable scope ) : ScriptableObject
scope Scriptable
Результат ScriptableObject

GetMessage() публичный статический Метод

public static GetMessage ( string messageId, object arguments ) : string
messageId string
arguments object
Результат string

GetMessage0() публичный статический Метод

public static GetMessage0 ( string messageId ) : string
messageId string
Результат string

GetMessage1() публичный статический Метод

public static GetMessage1 ( string messageId, object arg1 ) : string
messageId string
arg1 object
Результат string

GetMessage2() публичный статический Метод

public static GetMessage2 ( string messageId, object arg1, object arg2 ) : string
messageId string
arg1 object
arg2 object
Результат string

GetMessage3() публичный статический Метод

public static GetMessage3 ( string messageId, object arg1, object arg2, object arg3 ) : string
messageId string
arg1 object
arg2 object
arg3 object
Результат string

GetMessage4() публичный статический Метод

public static GetMessage4 ( string messageId, object arg1, object arg2, object arg3, object arg4 ) : string
messageId string
arg1 object
arg2 object
arg3 object
arg4 object
Результат string

GetNameFunctionAndThis() публичный статический Метод

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
Результат Callable

GetObjectElem() публичный статический Метод

public static GetObjectElem ( Scriptable obj, object elem, Context cx ) : object
obj Scriptable
elem object
cx Context
Результат object

GetObjectElem() публичный статический Метод

Call obj.[[Get]](id)
public static GetObjectElem ( object obj, object elem, Context cx ) : object
obj object
elem object
cx Context
Результат object

GetObjectElem() публичный статический Метод

Call obj.[[Get]](id)
public static GetObjectElem ( object obj, object elem, Context cx, Scriptable scope ) : object
obj object
elem object
cx Context
scope Scriptable
Результат object

GetObjectIndex() публичный статический Метод

public static GetObjectIndex ( Scriptable obj, int index, Context cx ) : object
obj Scriptable
index int
cx Context
Результат object

GetObjectIndex() публичный статический Метод

public static GetObjectIndex ( object obj, double dblIndex, Context cx ) : object
obj object
dblIndex double
cx Context
Результат object

GetObjectProp() публичный статический Метод

public static GetObjectProp ( Scriptable obj, string property, Context cx ) : object
obj Scriptable
property string
cx Context
Результат object

GetObjectProp() публичный статический Метод

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
Результат object

GetObjectProp() публичный статический Метод

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
Результат object

GetObjectPropNoWarn() публичный статический Метод

public static GetObjectPropNoWarn ( object obj, string property, Context cx ) : object
obj object
property string
cx Context
Результат object

GetPropFunctionAndThis() публичный статический Метод

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
Результат Callable

GetPropFunctionAndThis() публичный статический Метод

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
Результат Callable

GetRegExpProxy() публичный статический Метод

public static GetRegExpProxy ( Context cx ) : RegExpProxy
cx Context
Результат RegExpProxy

GetTopCallScope() публичный статический Метод

public static GetTopCallScope ( Context cx ) : Scriptable
cx Context
Результат Scriptable

GetTopLevelProp() публичный статический Метод

public static GetTopLevelProp ( Scriptable scope, string id ) : object
scope Scriptable
id string
Результат object

GetValueFunctionAndThis() публичный статический Метод

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
Результат Callable

HasObjectElem() публичный статический Метод

public static HasObjectElem ( Scriptable target, object elem, Context cx ) : bool
target Scriptable
elem object
cx Context
Результат bool

HasTopCall() публичный статический Метод

public static HasTopCall ( Context cx ) : bool
cx Context
Результат bool

In() публичный статический Метод

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
Результат bool

IndexFromString() публичный статический Метод

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
Результат long

InitFunction() публичный статический Метод

public static InitFunction ( Context cx, Scriptable scope, NativeFunction function, int type, bool fromEvalCode ) : void
cx Context
scope Scriptable
function NativeFunction
type int
fromEvalCode bool
Результат void

InitScript() публичный статический Метод

public static InitScript ( NativeFunction funObj, Scriptable thisObj, Context cx, Scriptable scope, bool evalScript ) : void
funObj NativeFunction
thisObj Scriptable
cx Context
scope Scriptable
evalScript bool
Результат void

InitStandardObjects() публичный статический Метод

public static InitStandardObjects ( Context cx, ScriptableObject scope, bool @sealed ) : ScriptableObject
cx Context
scope ScriptableObject
@sealed bool
Результат ScriptableObject

InstanceOf() публичный статический Метод

The instanceof operator.
The instanceof operator.
public static InstanceOf ( object a, object b, Context cx ) : bool
a object
b object
cx Context
Результат bool

IsArrayObject() публичный статический Метод

public static IsArrayObject ( object obj ) : bool
obj object
Результат bool

IsJSLineTerminator() публичный статический Метод

public static IsJSLineTerminator ( int c ) : bool
c int
Результат bool

IsJSWhitespaceOrLineTerminator() публичный статический Метод

public static IsJSWhitespaceOrLineTerminator ( int c ) : bool
c int
Результат bool

IsPrimitive() публичный статический Метод

public static IsPrimitive ( object obj ) : bool
obj object
Результат bool

IsRhinoRuntimeType() публичный статический Метод

public static IsRhinoRuntimeType ( Type cl ) : bool
cl System.Type
Результат bool

JsDelegatesTo() публичный статический Метод

Delegates to
public static JsDelegatesTo ( Scriptable lhs, Scriptable rhs ) : bool
lhs Scriptable
rhs Scriptable
Результат bool

LastStoredScriptable() публичный статический Метод

public static LastStoredScriptable ( Context cx ) : Scriptable
cx Context
Результат Scriptable

LastUint32Result() публичный статический Метод

public static LastUint32Result ( Context cx ) : long
cx Context
Результат long

LeaveDotQuery() публичный статический Метод

public static LeaveDotQuery ( Scriptable scope ) : Scriptable
scope Scriptable
Результат Scriptable

LeaveWith() публичный статический Метод

public static LeaveWith ( Scriptable scope ) : Scriptable
scope Scriptable
Результат Scriptable

MemberRef() публичный статический Метод

public static MemberRef ( object obj, object elem, Context cx, int memberTypeFlags ) : Ref
obj object
elem object
cx Context
memberTypeFlags int
Результат Ref

MemberRef() публичный статический Метод

public static MemberRef ( object obj, object @namespace, object elem, Context cx, int memberTypeFlags ) : Ref
obj object
@namespace object
elem object
cx Context
memberTypeFlags int
Результат Ref

Name() публичный статический Метод

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
Результат object

NameIncrDecr() публичный статический Метод

public static NameIncrDecr ( Scriptable scopeChain, string id, Context cx, int incrDecrMask ) : object
scopeChain Scriptable
id string
cx Context
incrDecrMask int
Результат object

NameRef() публичный статический Метод

public static NameRef ( object name, Context cx, Scriptable scope, int memberTypeFlags ) : Ref
name object
cx Context
scope Scriptable
memberTypeFlags int
Результат Ref

NameRef() публичный статический Метод

public static NameRef ( object @namespace, object name, Context cx, Scriptable scope, int memberTypeFlags ) : Ref
@namespace object
name object
cx Context
scope Scriptable
memberTypeFlags int
Результат Ref

NewArrayLiteral() публичный статический Метод

public static NewArrayLiteral ( object objects, int skipIndices, Context cx, Scriptable scope ) : Scriptable
objects object
skipIndices int
cx Context
scope Scriptable
Результат Scriptable

NewBuiltinObject() публичный статический Метод

public static NewBuiltinObject ( Context cx, Scriptable scope, TopLevel type, object args ) : Scriptable
cx Context
scope Scriptable
type TopLevel
args object
Результат Scriptable

NewCatchScope() публичный статический Метод

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
Результат Scriptable

NewObject() публичный статический Метод

public static NewObject ( Context cx, Scriptable scope, string constructorName, object args ) : Scriptable
cx Context
scope Scriptable
constructorName string
args object
Результат Scriptable

NewObject() публичный статический Метод

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
Результат Scriptable

NewObjectLiteral() публичный статический Метод

public static NewObjectLiteral ( object propertyIds, object propertyValues, int getterSetters, Context cx, Scriptable scope ) : Scriptable
propertyIds object
propertyValues object
getterSetters int
cx Context
scope Scriptable
Результат Scriptable

NewSpecial() публичный статический Метод

public static NewSpecial ( Context cx, object fun, object args, Scriptable scope, int callType ) : object
cx Context
fun object
args object
scope Scriptable
callType int
Результат object

NotFoundError() публичный статический Метод

public static NotFoundError ( Scriptable @object, string property ) : Exception
@object Scriptable
property string
Результат System.Exception

NotFunctionError() публичный статический Метод

public static NotFunctionError ( object value ) : Exception
value object
Результат System.Exception

NotFunctionError() публичный статический Метод

public static NotFunctionError ( object value, object messageHelper ) : Exception
value object
messageHelper object
Результат System.Exception

NotFunctionError() публичный статический Метод

public static NotFunctionError ( object obj, object value, string propertyName ) : Exception
obj object
value object
propertyName string
Результат System.Exception

NumberToString() публичный статический Метод

public static NumberToString ( double d, int @base ) : string
d double
@base int
Результат string

PadArguments() публичный статический Метод

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
Результат object[]

PropIncrDecr() публичный статический Метод

public static PropIncrDecr ( object obj, string id, Context cx, int incrDecrMask ) : object
obj object
id string
cx Context
incrDecrMask int
Результат object

RefDel() публичный статический Метод

public static RefDel ( Ref @ref, Context cx ) : object
@ref Ref
cx Context
Результат object

RefGet() публичный статический Метод

public static RefGet ( Ref @ref, Context cx ) : object
@ref Ref
cx Context
Результат object

RefIncrDecr() публичный статический Метод

public static RefIncrDecr ( Ref @ref, Context cx, int incrDecrMask ) : object
@ref Ref
cx Context
incrDecrMask int
Результат object

RefSet() публичный статический Метод

public static RefSet ( Ref @ref, object value, Context cx ) : object
@ref Ref
value object
cx Context
Результат object

ScriptRuntime() защищенный Метод

No instances should be created.
No instances should be created.
protected ScriptRuntime ( ) : System
Результат System

SearchDefaultNamespace() публичный статический Метод

public static SearchDefaultNamespace ( Context cx ) : object
cx Context
Результат object

SetBuiltinProtoAndParent() публичный статический Метод

public static SetBuiltinProtoAndParent ( ScriptableObject @object, Scriptable scope, TopLevel type ) : void
@object ScriptableObject
scope Scriptable
type TopLevel
Результат void

SetConst() публичный статический Метод

public static SetConst ( Scriptable bound, object value, Context cx, string id ) : object
bound Scriptable
value object
cx Context
id string
Результат object

SetDefaultNamespace() публичный статический Метод

public static SetDefaultNamespace ( object @namespace, Context cx ) : object
@namespace object
cx Context
Результат object

SetEnumNumbers() публичный статический Метод

public static SetEnumNumbers ( object enumObj, bool enumNumbers ) : void
enumObj object
enumNumbers bool
Результат void

SetFunctionProtoAndParent() публичный статический Метод

public static SetFunctionProtoAndParent ( BaseFunction fn, Scriptable scope ) : void
fn BaseFunction
scope Scriptable
Результат void

SetName() публичный статический Метод

public static SetName ( Scriptable bound, object value, Context cx, Scriptable scope, string id ) : object
bound Scriptable
value object
cx Context
scope Scriptable
id string
Результат object

SetObjectElem() публичный статический Метод

public static SetObjectElem ( Scriptable obj, object elem, object value, Context cx ) : object
obj Scriptable
elem object
value object
cx Context
Результат object

SetObjectElem() публичный статический Метод

public static SetObjectElem ( object obj, object elem, object value, Context cx ) : object
obj object
elem object
value object
cx Context
Результат object

SetObjectIndex() публичный статический Метод

public static SetObjectIndex ( Scriptable obj, int index, object value, Context cx ) : object
obj Scriptable
index int
value object
cx Context
Результат object

SetObjectIndex() публичный статический Метод

public static SetObjectIndex ( object obj, double dblIndex, object value, Context cx ) : object
obj object
dblIndex double
value object
cx Context
Результат object

SetObjectProp() публичный статический Метод

public static SetObjectProp ( Scriptable obj, string property, object value, Context cx ) : object
obj Scriptable
property string
value object
cx Context
Результат object

SetObjectProp() публичный статический Метод

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
Результат object

SetObjectProtoAndParent() публичный статический Метод

public static SetObjectProtoAndParent ( ScriptableObject @object, Scriptable scope ) : void
@object ScriptableObject
scope Scriptable
Результат void

SetRegExpProxy() публичный статический Метод

public static SetRegExpProxy ( Context cx, RegExpProxy proxy ) : void
cx Context
proxy RegExpProxy
Результат void

ShallowEq() публичный статический Метод

public static ShallowEq ( object x, object y ) : bool
x object
y object
Результат bool

SpecialRef() публичный статический Метод

public static SpecialRef ( object obj, string specialProperty, Context cx ) : Ref
obj object
specialProperty string
cx Context
Результат Ref

StoreUint32Result() публичный статический Метод

public static StoreUint32Result ( Context cx, long value ) : void
cx Context
value long
Результат void

StrictSetName() публичный статический Метод

public static StrictSetName ( Scriptable bound, object value, Context cx, Scriptable scope, string id ) : object
bound Scriptable
value object
cx Context
scope Scriptable
id string
Результат object

TestUint32String() публичный статический Метод

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
Результат long

ThrowError() публичный статический Метод

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
Результат JavaScriptException

ToBoolean() публичный статический Метод

Convert the value to a boolean.
Convert the value to a boolean. See ECMA 9.2.
public static ToBoolean ( object val ) : bool
val object
Результат bool

ToCharSequence() публичный статический Метод

public static ToCharSequence ( object val ) : Sharpen.CharSequence
val object
Результат Sharpen.CharSequence

ToInt32() публичный статический Метод

public static ToInt32 ( double d ) : int
d double
Результат int

ToInt32() публичный статический Метод

See ECMA 9.5.
See ECMA 9.5.
public static ToInt32 ( object val ) : int
val object
Результат int

ToInt32() публичный статический Метод

public static ToInt32 ( object args, int index ) : int
args object
index int
Результат int

ToInteger() публичный статический Метод

public static ToInteger ( double d ) : double
d double
Результат double

ToInteger() публичный статический Метод

See ECMA 9.4.
See ECMA 9.4.
public static ToInteger ( object val ) : double
val object
Результат double

ToInteger() публичный статический Метод

public static ToInteger ( object args, int index ) : double
args object
index int
Результат double

ToIterator() публичный статический Метод

public static ToIterator ( Context cx, Scriptable scope, Scriptable obj, bool keyOnly ) : Scriptable
cx Context
scope Scriptable
obj Scriptable
keyOnly bool
Результат Scriptable

ToNumber() публичный статический Метод

Convert the value to a number.
Convert the value to a number. See ECMA 9.3.
public static ToNumber ( object val ) : double
val object
Результат double

ToNumber() публичный статический Метод

public static ToNumber ( object args, int index ) : double
args object
index int
Результат double

ToNumber() публичный статический Метод

ToNumber applied to the String type See ECMA 9.3.1
public static ToNumber ( string s ) : double
s string
Результат double

ToObject() публичный статический Метод

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
Результат Scriptable

ToObject() публичный статический Метод

public static ToObject ( Scriptable scope, object val ) : Scriptable
scope Scriptable
val object
Результат Scriptable

ToObjectOrNull() публичный статический Метод

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
Результат Scriptable

ToObjectOrNull() публичный статический Метод

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
Результат Scriptable

ToPrimitive() публичный статический Метод

public static ToPrimitive ( object val ) : object
val object
Результат object

ToPrimitive() публичный статический Метод

public static ToPrimitive ( object val, Type typeHint ) : object
val object
typeHint System.Type
Результат object

ToString() публичный статический Метод

Optimized version of toString(Object) for numbers.
Optimized version of toString(Object) for numbers.
public static ToString ( double val ) : string
val double
Результат string

ToString() публичный статический Метод

Convert the value to a string.
Convert the value to a string. See ECMA 9.8.
public static ToString ( object val ) : string
val object
Результат string

ToString() публичный статический Метод

public static ToString ( object args, int index ) : string
args object
index int
Результат string

ToUint16() публичный статический Метод

See ECMA 9.7.
See ECMA 9.7.
public static ToUint16 ( object val ) : char
val object
Результат char

ToUint32() публичный статический Метод

See ECMA 9.6.
See ECMA 9.6.
public static ToUint32 ( double d ) : long
d double
Результат long

ToUint32() публичный статический Метод

public static ToUint32 ( object val ) : long
val object
Результат long

TypeError() публичный статический Метод

public static TypeError ( string message ) : EcmaError
message string
Результат EcmaError

TypeError0() публичный статический Метод

public static TypeError0 ( string messageId ) : EcmaError
messageId string
Результат EcmaError

TypeError1() публичный статический Метод

public static TypeError1 ( string messageId, string arg1 ) : EcmaError
messageId string
arg1 string
Результат EcmaError

TypeError2() публичный статический Метод

public static TypeError2 ( string messageId, string arg1, string arg2 ) : EcmaError
messageId string
arg1 string
arg2 string
Результат EcmaError

TypeError3() публичный статический Метод

public static TypeError3 ( string messageId, string arg1, string arg2, string arg3 ) : EcmaError
messageId string
arg1 string
arg2 string
arg3 string
Результат EcmaError

TypeErrorThrower() публичный статический Метод

Returns representation of the [[ThrowTypeError]] object.
Returns representation of the [[ThrowTypeError]] object. See ECMA 5 spec, 13.2.3
public static TypeErrorThrower ( ) : BaseFunction
Результат BaseFunction

Typeof() публичный статический Метод

The typeof operator
public static Typeof ( object value ) : string
value object
Результат string

TypeofName() публичный статический Метод

The typeof operator that correctly handles the undefined case
public static TypeofName ( Scriptable scope, string id ) : string
scope Scriptable
id string
Результат string

UndefCallError() публичный статический Метод

public static UndefCallError ( object @object, object id ) : Exception
@object object
id object
Результат System.Exception

UndefReadError() публичный статический Метод

public static UndefReadError ( object @object, object id ) : Exception
@object object
id object
Результат System.Exception

UndefWriteError() публичный статический Метод

public static UndefWriteError ( object @object, object id, object value ) : Exception
@object object
id object
value object
Результат System.Exception

UpdateDotQuery() публичный статический Метод

public static UpdateDotQuery ( bool value, Scriptable scope ) : object
value bool
scope Scriptable
Результат object

WrapBoolean() публичный статический Метод

public static WrapBoolean ( bool b ) : bool
b bool
Результат bool

WrapException() публичный статический Метод

public static WrapException ( Exception t, Scriptable scope, Context cx ) : Scriptable
t System.Exception
scope Scriptable
cx Context
Результат Scriptable

WrapInt() публичный статический Метод

public static WrapInt ( int i ) : int
i int
Результат int

WrapNumber() публичный статический Метод

public static WrapNumber ( double x ) : Number
x double
Результат Number

WrapRegExp() публичный статический Метод

public static WrapRegExp ( Context cx, Scriptable scope, object compiled ) : Scriptable
cx Context
scope Scriptable
compiled object
Результат Scriptable

Описание свойств

BooleanClass публичное статическое свойство

public static Type,System BooleanClass
Результат System.Type

ByteClass публичное статическое свойство

public static Type,System ByteClass
Результат System.Type

CharacterClass публичное статическое свойство

public static Type,System CharacterClass
Результат System.Type

ClassClass публичное статическое свойство

public static Type,System ClassClass
Результат System.Type

ContextClass публичное статическое свойство

public static Type,System ContextClass
Результат System.Type

ContextFactoryClass публичное статическое свойство

public static Type,System ContextFactoryClass
Результат System.Type

DateClass публичное статическое свойство

public static Type,System DateClass
Результат System.Type

DoubleClass публичное статическое свойство

public static Type,System DoubleClass
Результат System.Type

FloatClass публичное статическое свойство

public static Type,System FloatClass
Результат System.Type

FunctionClass публичное статическое свойство

public static Type,System FunctionClass
Результат System.Type

IntegerClass публичное статическое свойство

public static Type,System IntegerClass
Результат System.Type

LongClass публичное статическое свойство

public static Type,System LongClass
Результат System.Type

NaN публичное статическое свойство

public static double NaN
Результат double

NaNobj публичное статическое свойство

public static double NaNobj
Результат double

NumberClass публичное статическое свойство

public static Type,System NumberClass
Результат System.Type

ObjectClass публичное статическое свойство

public static Type,System ObjectClass
Результат System.Type

ROOT_LOCALE публичное статическое свойство

public static CultureInfo,System.Globalization ROOT_LOCALE
Результат System.Globalization.CultureInfo

ScriptableClass публичное статическое свойство

public static Type,System ScriptableClass
Результат System.Type

ScriptableObjectClass публичное статическое свойство

public static Type,System ScriptableObjectClass
Результат System.Type

ShortClass публичное статическое свойство

public static Type,System ShortClass
Результат System.Type

StringClass публичное статическое свойство

public static Type,System StringClass
Результат System.Type

emptyArgs публичное статическое свойство

public static object[] emptyArgs
Результат object[]

emptyStrings публичное статическое свойство

public static string[] emptyStrings
Результат string[]

messageProvider публичное статическое свойство

public static ScriptRuntime.MessageProvider messageProvider
Результат ScriptRuntime.MessageProvider

negativeZero публичное статическое свойство

public static double negativeZero
Результат double