public class EagerJsonInvocationImpl<T> extends NativeInvocationBase implements NativeInvocation<T>
| Constructor and Description |
|---|
EagerJsonInvocationImpl(T instance,
Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
String |
getJson() |
T |
getObject() |
Class<?> |
getObjectClass() |
NativeInvocation |
invoke(String methodName,
InvocationArg... arg)
Invokes a method of the instance of the class that is set for this
NativeInvocation |
void |
invokeAsync(long functionPointer,
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... arg)
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. |
cast, cloneInstancepublic NativeInvocation invoke(String methodName, InvocationArg... arg)
NativeInvocationNativeInvocationinvoke in interface NativeInvocation<T>methodName - The method namearg - The arguments to use for invoking the methodNativeInvocation instance containing the result of the invocationpublic NativeInvocation invokeStatic(String methodName, InvocationArg... arg)
NativeInvocationNativeInvocationinvokeStatic in interface NativeInvocation<T>methodName - The static method namearg - The arguments to use for invoking the static methodNativeInvocation instance containing the result of the invocationpublic void invokeAsync(long functionPointer,
String methodName,
InvocationArg... args)
NativeInvocationNativeInvocation.
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.invokeAsync in interface NativeInvocation<T>functionPointer - 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)public void invokeToChannel(long channelAddress,
String methodName,
InvocationArg... args)
NativeInvocationNativeInvocation.
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.invokeToChannel in interface NativeInvocation<T>public T getObject()
getObject in interface ObjectValuepublic Class<?> getObjectClass()
getObjectClass in interface ObjectValueCopyright © 2018. All rights reserved.