C# Class Jurassic.Library.ClrFunction

Inheritance: FunctionInstance
Show file Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

Method Description
CallLateBound ( object thisObject ) : object

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

ConstructLateBound ( ) : ObjectInstance

Creates an object, using this function as the constructor.

Protected Methods

Method Description
ClrFunction ( ObjectInstance prototype, string name, ObjectInstance instancePrototype ) : System

Creates a new instance of a built-in constructor function.

Private Methods

Method Description
ClrFunction ( ObjectInstance prototype, Binder binder ) : System

Creates a new instance of a function which calls the given binder.

ClrFunction ( ObjectInstance prototype, Delegate delegateToCall, string name = null, int length = -1 ) : System

Creates a new instance of a function which calls the given delegate.

ClrFunction ( ObjectInstance prototype, IEnumerable methods, string name = null, int length = -1 ) : System

Creates a new instance of a function which calls one or more provided methods.

Method Details

CallLateBound() public method

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.
return object

ClrFunction() protected method

Creates a new instance of a built-in constructor function.
protected ClrFunction ( ObjectInstance prototype, string name, ObjectInstance instancePrototype ) : System
prototype ObjectInstance The next object in the prototype chain.
name string The name of the function.
instancePrototype ObjectInstance
return System

ConstructLateBound() public method

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