public interface NativeInvocation<T> extends ObjectValue, JsonValue
| Modifier and Type | Method and Description |
|---|---|
NativeInvocation |
invoke(String methodName,
InvocationArg... args)
Invokes a method of the instance of the class that is set for this
NativeInvocation |
void |
invokeAsync(long functionPointerAddress,
String methodName,
InvocationArg... args)
Invokes asynchronously a method of the instance of the class that is set for this
NativeInvocation. |
NativeInvocation |
invokeStatic(String methodName,
InvocationArg... args)
Invokes a static method of the class that is set for this
NativeInvocation |
void |
invokeToChannel(long channelAddress,
String methodName,
InvocationArg... args)
Invokes a method of the instance of the class that is set for this
NativeInvocation. |
getObject, getObjectClassNativeInvocation invoke(String methodName, InvocationArg... args)
NativeInvocationmethodName - The method nameargs - The arguments to use for invoking the methodNativeInvocation instance containing the result of the invocationNativeInvocation invokeStatic(String methodName, InvocationArg... args)
NativeInvocationmethodName - The static method nameargs - The arguments to use for invoking the static methodNativeInvocation instance containing the result of the invocationvoid invokeAsync(long functionPointerAddress,
String methodName,
InvocationArg... args)
NativeInvocation.
The result of the invocation should be provided later using the performCallback method of a NativeCallbackSupport class.
Any possible returned objects from the actual synchronous invocation of the defined method will be dropped.functionPointerAddress - The address of the function pointer that will be used later in the native side in order to actually paerform the callback.methodName - The method nameargs - The arguments to use when invoking the callback method (the functionPointer)void invokeToChannel(long channelAddress,
String methodName,
InvocationArg... args)
NativeInvocation.
The result of the invocation should be provided later using the performCallbackToChannel method of a NativeCallbackToRustChannelSupport class.
Any possible returned objects from the actual synchronous invocation of the defined method will be dropped.channelAddress - methodName - args - Copyright © 2018. All rights reserved.