C# Class Rhino.InterfaceAdapter

Adapter to use JS function as implementation of Java interfaces with single method or multiple methods with the same signature.
Adapter to use JS function as implementation of Java interfaces with single method or multiple methods with the same signature.
显示文件 Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
Invoke ( ContextFactory cf, object target, Scriptable topScope, object thisObject, MethodInfo method, object args ) : object

Private Methods

Method Description
Create ( Context cx, Type cl, ScriptableObject @object ) : object

Make glue object implementing interface cl that will call the supplied JS function when called.

Make glue object implementing interface cl that will call the supplied JS function when called. Only interfaces were all methods have the same signature is supported.

InterfaceAdapter ( ContextFactory cf, Type cl ) : System
InvokeImpl ( Context cx, object target, Scriptable topScope, object thisObject, MethodInfo method, object args ) : object

Method Details

Invoke() public method

public Invoke ( ContextFactory cf, object target, Scriptable topScope, object thisObject, MethodInfo method, object args ) : object
cf ContextFactory
target object
topScope Scriptable
thisObject object
method System.Reflection.MethodInfo
args object
return object