C# Класс Rhino.BaseFunction

Наследование: IdScriptableObject, System.Function
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BaseFunction ( ) : System
BaseFunction ( Scriptable scope, Scriptable prototype ) : System
Call ( Context cx, Scriptable scope, Scriptable thisObj, object args ) : object

Should be overridden.

Should be overridden.

Construct ( Context cx, Scriptable scope, object args ) : Scriptable
CreateObject ( Context cx, Scriptable scope ) : Scriptable

Creates new script object.

Creates new script object. The default implementation of Construct(Context, Scriptable, object[]) uses the method to to get the value for thisObj argument when invoking Call(Context, Scriptable, Scriptable, object[]) . The methos is allowed to return null to indicate that Call(Context, Scriptable, Scriptable, object[]) will create a new object itself. In this case Construct(Context, Scriptable, object[]) will set scope and prototype on the result Call(Context, Scriptable, Scriptable, object[]) unless they are already set.

ExecIdCall ( IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
GetArity ( ) : int
GetClassName ( ) : string
GetFunctionName ( ) : string
GetLength ( ) : int
GetTypeOf ( ) : string

Gets the value returned by calling the typeof operator on this object.

Gets the value returned by calling the typeof operator on this object.

HasInstance ( Scriptable instance ) : bool

Implements the instanceof operator for JavaScript Function objects.

Implements the instanceof operator for JavaScript Function objects.

foo = new Foo();
foo instanceof Foo; // true

SetImmunePrototypeProperty ( object value ) : void

Make value as DontEnum, DontDelete, ReadOnly prototype property of this Function object

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

Метод Описание
FillConstructorProperties ( IdFunctionObject ctor ) : void
FindInstanceIdInfo ( string s ) : int
FindPrototypeId ( string s ) : int
GetClassPrototype ( ) : Scriptable
GetInstanceIdName ( int id ) : string
GetInstanceIdValue ( int id ) : object
GetMaxInstanceId ( ) : int
GetPrototypeProperty ( ) : object
HasPrototypeProperty ( ) : bool
InitPrototypeId ( int id ) : void
SetInstanceIdValue ( int id, object value ) : void

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

Метод Описание
Decompile ( int indent, int flags ) : string

Decompile the source information associated with this js function/script back into a string.

Decompile the source information associated with this js function/script back into a string.

GetArguments ( ) : object
Init ( Scriptable scope, bool @sealed ) : void
IsApply ( IdFunctionObject f ) : bool
IsApplyOrCall ( IdFunctionObject f ) : bool
JsConstructor ( Context cx, Scriptable scope, object args ) : object
RealFunction ( Scriptable thisObj, IdFunctionObject f ) : BaseFunction
SetupDefaultPrototype ( ) : object

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

BaseFunction() публичный Метод

public BaseFunction ( ) : System
Результат System

BaseFunction() публичный Метод

public BaseFunction ( Scriptable scope, Scriptable prototype ) : System
scope Scriptable
prototype Scriptable
Результат System

Call() публичный Метод

Should be overridden.
Should be overridden.
public Call ( Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
cx Context
scope Scriptable
thisObj Scriptable
args object
Результат object

Construct() публичный Метод

public Construct ( Context cx, Scriptable scope, object args ) : Scriptable
cx Context
scope Scriptable
args object
Результат Scriptable

CreateObject() публичный Метод

Creates new script object.
Creates new script object. The default implementation of Construct(Context, Scriptable, object[]) uses the method to to get the value for thisObj argument when invoking Call(Context, Scriptable, Scriptable, object[]) . The methos is allowed to return null to indicate that Call(Context, Scriptable, Scriptable, object[]) will create a new object itself. In this case Construct(Context, Scriptable, object[]) will set scope and prototype on the result Call(Context, Scriptable, Scriptable, object[]) unless they are already set.
public CreateObject ( Context cx, Scriptable scope ) : Scriptable
cx Context
scope Scriptable
Результат Scriptable

ExecIdCall() публичный Метод

public ExecIdCall ( IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
f IdFunctionObject
cx Context
scope Scriptable
thisObj Scriptable
args object
Результат object

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

protected FillConstructorProperties ( IdFunctionObject ctor ) : void
ctor IdFunctionObject
Результат void

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

protected FindInstanceIdInfo ( string s ) : int
s string
Результат int

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

protected FindPrototypeId ( string s ) : int
s string
Результат int

GetArity() публичный Метод

public GetArity ( ) : int
Результат int

GetClassName() публичный Метод

public GetClassName ( ) : string
Результат string

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

protected GetClassPrototype ( ) : Scriptable
Результат Scriptable

GetFunctionName() публичный Метод

public GetFunctionName ( ) : string
Результат string

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

protected GetInstanceIdName ( int id ) : string
id int
Результат string

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

protected GetInstanceIdValue ( int id ) : object
id int
Результат object

GetLength() публичный Метод

public GetLength ( ) : int
Результат int

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

protected GetMaxInstanceId ( ) : int
Результат int

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

protected GetPrototypeProperty ( ) : object
Результат object

GetTypeOf() публичный Метод

Gets the value returned by calling the typeof operator on this object.
Gets the value returned by calling the typeof operator on this object.
public GetTypeOf ( ) : string
Результат string

HasInstance() публичный Метод

Implements the instanceof operator for JavaScript Function objects.
Implements the instanceof operator for JavaScript Function objects.

foo = new Foo();
foo instanceof Foo; // true

public HasInstance ( Scriptable instance ) : bool
instance Scriptable /// The value that appeared on the LHS of the instanceof /// operator ///
Результат bool

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

protected HasPrototypeProperty ( ) : bool
Результат bool

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

protected InitPrototypeId ( int id ) : void
id int
Результат void

SetImmunePrototypeProperty() публичный Метод

Make value as DontEnum, DontDelete, ReadOnly prototype property of this Function object
public SetImmunePrototypeProperty ( object value ) : void
value object
Результат void

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

protected SetInstanceIdValue ( int id, object value ) : void
id int
value object
Результат void