C# Class Rhino.BaseFunction

Inheritance: IdScriptableObject, System.Function
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

Private Methods

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

Method Details

BaseFunction() public méthode

public BaseFunction ( ) : System
Résultat System

BaseFunction() public méthode

public BaseFunction ( Scriptable scope, Scriptable prototype ) : System
scope Scriptable
prototype Scriptable
Résultat System

Call() public méthode

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

Construct() public méthode

public Construct ( Context cx, Scriptable scope, object args ) : Scriptable
cx Context
scope Scriptable
args object
Résultat Scriptable

CreateObject() public méthode

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

ExecIdCall() public méthode

public ExecIdCall ( IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
f IdFunctionObject
cx Context
scope Scriptable
thisObj Scriptable
args object
Résultat object

FillConstructorProperties() protected méthode

protected FillConstructorProperties ( IdFunctionObject ctor ) : void
ctor IdFunctionObject
Résultat void

FindInstanceIdInfo() protected méthode

protected FindInstanceIdInfo ( string s ) : int
s string
Résultat int

FindPrototypeId() protected méthode

protected FindPrototypeId ( string s ) : int
s string
Résultat int

GetArity() public méthode

public GetArity ( ) : int
Résultat int

GetClassName() public méthode

public GetClassName ( ) : string
Résultat string

GetClassPrototype() protected méthode

protected GetClassPrototype ( ) : Scriptable
Résultat Scriptable

GetFunctionName() public méthode

public GetFunctionName ( ) : string
Résultat string

GetInstanceIdName() protected méthode

protected GetInstanceIdName ( int id ) : string
id int
Résultat string

GetInstanceIdValue() protected méthode

protected GetInstanceIdValue ( int id ) : object
id int
Résultat object

GetLength() public méthode

public GetLength ( ) : int
Résultat int

GetMaxInstanceId() protected méthode

protected GetMaxInstanceId ( ) : int
Résultat int

GetPrototypeProperty() protected méthode

protected GetPrototypeProperty ( ) : object
Résultat object

GetTypeOf() public méthode

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

HasInstance() public méthode

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

HasPrototypeProperty() protected méthode

protected HasPrototypeProperty ( ) : bool
Résultat bool

InitPrototypeId() protected méthode

protected InitPrototypeId ( int id ) : void
id int
Résultat void

SetImmunePrototypeProperty() public méthode

Make value as DontEnum, DontDelete, ReadOnly prototype property of this Function object
public SetImmunePrototypeProperty ( object value ) : void
value object
Résultat void

SetInstanceIdValue() protected méthode

protected SetInstanceIdValue ( int id, object value ) : void
id int
value object
Résultat void