public class JsiiObject extends Object implements JsiiSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
JsiiObject.InitializationMode
Used as a marker for bypassing native ctor chain.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JsiiObject(JsiiObject.InitializationMode initializationMode)
A special constructor that allows creating wrapper objects while bypassing the normal constructor
chain.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
jsiiAsyncCall(String method,
Class<T> returnType,
Object... args)
Calls an async method on the object.
|
protected <T> T |
jsiiCall(String method,
Class<T> returnType,
Object... args)
Calls a JavaScript method on the object.
|
protected <T> T |
jsiiGet(String property,
Class<T> type)
Gets a property value from the object.
|
protected void |
jsiiSet(String property,
Object value)
Sets a property value of an object.
|
protected static <T> T |
jsiiStaticCall(Class<?> nativeClass,
String method,
Class<T> returnType,
Object... args)
Calls a static method.
|
protected static <T> T |
jsiiStaticGet(Class<?> nativeClass,
String property,
Class<T> type)
Returns the value of a static property.
|
protected static void |
jsiiStaticSet(Class<?> nativeClass,
String property,
Object value)
Sets a value for a static property.
|
protected JsiiObject(JsiiObject.InitializationMode initializationMode)
initializationMode - Must always be set to "Jsii".@Nullable protected final <T> T jsiiCall(String method, Class<T> returnType, @Nullable Object... args)
T - Java type for the return value.method - The name of the method.returnType - The return type.args - Method arguments.@Nullable protected static <T> T jsiiStaticCall(Class<?> nativeClass, String method, Class<T> returnType, @Nullable Object... args)
T - Return type.nativeClass - The java class.method - The method to call.returnType - The return type.args - The method arguments.@Nullable protected final <T> T jsiiAsyncCall(String method, Class<T> returnType, @Nullable Object... args)
T - Java type for the return value.method - The name of the method.returnType - The return type.args - Method arguments.@Nullable protected final <T> T jsiiGet(String property, Class<T> type)
T - The Java type of the property.property - The property name.type - The Java type of the property.@Nullable protected static <T> T jsiiStaticGet(Class<?> nativeClass, String property, Class<T> type)
T - Return typenativeClass - The java class.property - The name of the property.type - The expected java return type.protected final void jsiiSet(String property, @Nullable Object value)
property - The name of the property.value - The property value.Copyright © 2019. All rights reserved.