public class BaseJavaModule.JavaMethod extends java.lang.Object implements NativeModule.NativeMethod
Constructor and Description |
---|
BaseJavaModule.JavaMethod(java.lang.reflect.Method method) |
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(CatalystInstance catalystInstance,
ExecutorToken executorToken,
ReadableNativeArray parameters) |
public BaseJavaModule.JavaMethod(java.lang.reflect.Method method)
public java.lang.reflect.Method getMethod()
public java.lang.String getSignature()
public void invoke(CatalystInstance catalystInstance, ExecutorToken executorToken, ReadableNativeArray parameters)
invoke
in interface NativeModule.NativeMethod
public java.lang.String getType()
getType
in interface NativeModule.NativeMethod