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.
|
protected |
JsiiObject(JsiiObjectRef objRef)
Used to construct a JSII object with a reference to an existing managed JSII node object.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
jsiiAsyncCall(String method,
Class<T> returnType,
Object... args)
Deprecated.
use
jsiiAsyncCall(String, NativeType, Object...) instead |
protected <T> T |
jsiiAsyncCall(String method,
NativeType<T> nativeType,
Object... args)
Calls an async method on the object.
|
protected <T> T |
jsiiCall(String method,
Class<T> returnType,
Object... args)
Deprecated.
use
jsiiCall(String, NativeType, Object...) instead |
protected <T> T |
jsiiCall(String method,
NativeType<T> nativeType,
Object... args)
Calls a JavaScript method on the object.
|
protected <T> T |
jsiiGet(String property,
Class<T> type)
Deprecated.
use
jsiiGet(String, NativeType) instead |
protected <T> T |
jsiiGet(String property,
NativeType<T> type)
Gets a property value from the object.
|
protected void |
jsiiSet(String property,
@Nullable Object value)
Sets a property value of an object.
|
protected static <T> T |
jsiiStaticCall(Class<?> nativeClass,
String method,
Class<T> returnType,
Object... args)
Deprecated.
|
protected static <T> T |
jsiiStaticCall(Class<?> nativeClass,
String method,
NativeType<T> nativeType,
Object... args)
Calls a static method.
|
protected static <T> T |
jsiiStaticGet(Class<?> nativeClass,
String property,
Class<T> type)
Deprecated.
use
jsiiStaticGet(Class, String, NativeType) instead |
protected static <T> T |
jsiiStaticGet(Class<?> nativeClass,
String property,
NativeType<T> type)
Returns the value of a static property.
|
protected static void |
jsiiStaticSet(Class<?> nativeClass,
String property,
@Nullable Object value)
Sets a value for a static property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait$jsii$toJsonprotected JsiiObject(JsiiObject.InitializationMode initializationMode)
initializationMode - Must always be set to "JSII".protected JsiiObject(JsiiObjectRef objRef)
objRef - Reference to existing managed JSII node object.@Nullable @Deprecated protected final <T> T jsiiCall(String method, Class<T> returnType, @Nullable Object... args)
jsiiCall(String, NativeType, Object...) insteadT - Java type for the return value.method - The name of the method.returnType - The return type.args - Method arguments.@Nullable protected final <T> T jsiiCall(String method, NativeType<T> nativeType, @Nullable Object... args)
T - Java type for the return value.method - The name of the method.nativeType - The return type.args - Method arguments.@Nullable @Deprecated protected static <T> T jsiiStaticCall(Class<?> nativeClass, String method, Class<T> returnType, @Nullable Object... args)
jsiiStaticCall(Class, String, NativeType, Object...) insteadT - Return type.nativeClass - The java class.method - The method to call.returnType - The return type.args - The method arguments.@Nullable protected static <T> T jsiiStaticCall(Class<?> nativeClass, String method, NativeType<T> nativeType, @Nullable Object... args)
T - Return type.nativeClass - The java class.method - The method to call.nativeType - The return type.args - The method arguments.@Nullable @Deprecated protected final <T> T jsiiAsyncCall(String method, Class<T> returnType, @Nullable Object... args)
jsiiAsyncCall(String, NativeType, Object...) insteadT - Java type for the return value.method - The name of the method.returnType - The return type.args - Method arguments.@Nullable protected final <T> T jsiiAsyncCall(String method, NativeType<T> nativeType, @Nullable Object... args)
T - Java type for the return value.method - The name of the method.nativeType - The return type.args - Method arguments.@Nullable @Deprecated protected final <T> T jsiiGet(String property, Class<T> type)
jsiiGet(String, NativeType) insteadT - The Java type of the property.property - The property name.type - The Java type of the property.@Nullable protected final <T> T jsiiGet(String property, NativeType<T> type)
T - The Java type of the property.property - The property name.type - The Java type of the property.@Nullable @Deprecated protected static <T> T jsiiStaticGet(Class<?> nativeClass, String property, Class<T> type)
jsiiStaticGet(Class, String, NativeType) insteadT - Return typenativeClass - The java class.property - The name of the property.type - The expected java return type.@Nullable protected static <T> T jsiiStaticGet(Class<?> nativeClass, String property, NativeType<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 @Nullable Object value)
property - The name of the property.value - The property value.Copyright © 2020 Amazon Web Services. All rights reserved.