public class JavaMethodWrapper extends java.lang.Object implements NativeModule.NativeMethod
Constructor and Description |
---|
JavaMethodWrapper(JavaModuleWrapper module,
java.lang.reflect.Method method,
boolean isSync) |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Method |
getMethod() |
java.lang.String |
getSignature() |
java.lang.String |
getType()
Determines how the method is exported in JavaScript:
METHOD_TYPE_ASYNC for regular methods
METHOD_TYPE_PROMISE for methods that return a promise object to the caller.
|
void |
invoke(JSInstance jsInstance,
ReadableArray parameters) |
public JavaMethodWrapper(JavaModuleWrapper module, java.lang.reflect.Method method, boolean isSync)
public java.lang.reflect.Method getMethod()
public java.lang.String getSignature()
public void invoke(JSInstance jsInstance, ReadableArray parameters)
invoke
in interface NativeModule.NativeMethod
public java.lang.String getType()
getType
in interface NativeModule.NativeMethod