C# 클래스 Rhino.BaseFunction

상속: IdScriptableObject, System.Function
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
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