C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Invoke ( ContextFactory cf, object target, Scriptable topScope, object thisObject, MethodInfo method, object args ) : object

Приватные методы

Метод Описание
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

Описание методов

Invoke() публичный Метод

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
Результат object