| Modifier and Type | Method and Description |
|---|---|
static <T> T |
asyncCall(Object receiver,
String method,
NativeType<T> nativeType,
Object... args)
Calls an async method on the object.
|
static <T> T |
call(Object receiver,
String method,
NativeType<T> nativeType,
Object... args)
Calls a JavaScript method on a receiver.
|
static <T> T |
get(Object receiver,
String property,
NativeType<T> type)
Gets a property value from the object.
|
static void |
set(Object receiver,
String property,
@Nullable Object value)
Sets a property value of an object.
|
@Nullable @Internal public static <T> T asyncCall(Object receiver, String method, NativeType<T> nativeType, @Nullable Object... args)
T - Java type for the return value.receiver - the receiver for the method call.method - The name of the method.nativeType - The return type.args - Method arguments.@Nullable @Internal public static <T> T call(Object receiver, String method, NativeType<T> nativeType, @Nullable Object... args)
T - Java type for the return value.receiver - the receiver for hte method callmethod - The name of the method.nativeType - The return type.args - Method arguments.@Nullable @Internal public static <T> T get(Object receiver, String property, NativeType<T> type)
T - The Java type of the property.receiver - The receiver of the property access.property - The property name.type - The Java type of the property.Copyright © 2022 Amazon Web Services. All rights reserved.