C# 클래스 Jurassic.Library.ClrStubFunction

Represents a function that is implemented with a .NET static method. Faster, but less flexible version of ClrFunction. Now used by all the built-in constructors and functions.
상속: FunctionInstance
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
CallLateBound ( object thisObject ) : object

Calls this function, passing in the given "this" value and zero or more arguments.

ClrStubFunction ( ObjectInstance prototype, string name, int length, Func call ) : System

Creates a new instance of a function which calls a .NET method.

ConstructLateBound ( ) : ObjectInstance

Creates an object, using this function as the constructor.

보호된 메소드들

메소드 설명
ClrStubFunction ( ObjectInstance prototype, string name, int length, ObjectInstance instancePrototype, Func construct, Func call ) : System

Creates a new constructor function.

InitializeConstructorProperties ( List properties, string name, int length, ObjectInstance instancePrototype ) : void

Adds properties needed by the function to the list of properties.

비공개 메소드들

메소드 설명
ClrStubFunction ( ObjectInstance prototype, Func construct, Func call ) : System

Creates a new constructor function.

ClrStubFunction ( ObjectInstance prototype, Func call ) : System

Creates a function which calls a .NET method, with no name or length.

메소드 상세

CallLateBound() 공개 메소드

Calls this function, passing in the given "this" value and zero or more arguments.
public CallLateBound ( object thisObject ) : object
thisObject object The value of the "this" keyword within the function.
리턴 object

ClrStubFunction() 공개 메소드

Creates a new instance of a function which calls a .NET method.
public ClrStubFunction ( ObjectInstance prototype, string name, int length, Func call ) : System
prototype ObjectInstance The next object in the prototype chain.
name string The name of the function.
length int The "typical" number of arguments expected by the function.
call Func The delegate to call when calling the JS method.
리턴 System

ClrStubFunction() 보호된 메소드

Creates a new constructor function.
protected ClrStubFunction ( ObjectInstance prototype, string name, int length, ObjectInstance instancePrototype, Func construct, Func call ) : System
prototype ObjectInstance The next object in the prototype chain.
name string The name of the function.
length int The "typical" number of arguments expected by the function.
instancePrototype ObjectInstance The value of the "prototype" property.
construct Func The delegate to call when calling the JS method as a constructor.
call Func The delegate to call when function is called.
리턴 System

ConstructLateBound() 공개 메소드

Creates an object, using this function as the constructor.
public ConstructLateBound ( ) : ObjectInstance
리턴 ObjectInstance

InitializeConstructorProperties() 보호된 메소드

Adds properties needed by the function to the list of properties.
protected InitializeConstructorProperties ( List properties, string name, int length, ObjectInstance instancePrototype ) : void
properties List The list of properties to add to.
name string The name of the function.
length int The "typical" number of arguments expected by the function.
instancePrototype ObjectInstance The value of the "prototype" property.
리턴 void