C# 클래스 Jurassic.Compiler.Binder

파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
Call ( ScriptEngine engine, object thisObject ) : object

Calls the bound method.

CreateDelegate ( int argumentCount ) : BinderDelegate

Creates a delegate that does type conversion and calls the bound method.

This method caches the result so calling CreateDelegate a second time with the same parameter count will be markedly quicker.

ToString ( ) : string

Returns a textual representation of this object.

보호된 메소드들

메소드 설명
GenerateStub ( ILGenerator generator, int argumentCount ) : void

Generates a method that does type conversion and calls the bound method.

비공개 메소드들

메소드 설명
CreateDelegateCore ( int argumentCount ) : BinderDelegate

Creates a delegate that does type conversion and calls the bound method.

No caching of the result occurs.

메소드 상세

Call() 공개 메소드

Calls the bound method.
public Call ( ScriptEngine engine, object thisObject ) : object
engine ScriptEngine The associated script engine.
thisObject object The value of the this keyword.
리턴 object

CreateDelegate() 공개 메소드

Creates a delegate that does type conversion and calls the bound method.
This method caches the result so calling CreateDelegate a second time with the same parameter count will be markedly quicker.
public CreateDelegate ( int argumentCount ) : BinderDelegate
argumentCount int The number of arguments that will be passed to the delegate.
리턴 BinderDelegate

GenerateStub() 보호된 추상적인 메소드

Generates a method that does type conversion and calls the bound method.
protected abstract GenerateStub ( ILGenerator generator, int argumentCount ) : void
generator ILGenerator The ILGenerator used to output the body of the method.
argumentCount int The number of arguments that will be passed to the delegate.
리턴 void

ToString() 공개 메소드

Returns a textual representation of this object.
public ToString ( ) : string
리턴 string