public interface IV8ValueObject extends IV8ValueReference
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BATCH_SIZE
The constant DEFAULT_BATCH_SIZE is the default batch size for get a chunk of items.
|
static int |
MIN_BATCH_SIZE
The constant MIN_BATCH_SIZE.
|
Modifier and Type | Method and Description |
---|---|
int |
batchGet(V8Value[] v8ValueKeys,
V8Value[] v8ValueValues,
int length)
Batch get a range of values by keys.
|
java.util.List<JavetCallbackContext> |
bind(java.lang.Object callbackReceiver)
Bind both functions via @V8Function and properties via @V8Property.
|
boolean |
bindFunction(JavetCallbackContext javetCallbackContext)
Binds function by name symbol and callback context.
|
default boolean |
bindFunction(java.lang.String functionName,
java.lang.String codeString)
Binds function by name string and code string.
|
default boolean |
bindFunction(V8ValueSymbol functionName,
java.lang.String codeString)
Binds function by name symbol and code string.
|
default boolean |
bindProperty(JavetCallbackContext javetCallbackContextGetter)
Bind property by name string and getter.
|
boolean |
bindProperty(JavetCallbackContext javetCallbackContextGetter,
JavetCallbackContext javetCallbackContextSetter)
Bind property by getter and setter.
|
boolean |
delete(java.lang.Object key)
Delete property by key object.
|
default boolean |
deleteNull()
Delete property by null.
|
boolean |
deletePrivateProperty(java.lang.String propertyName)
Delete private property by name string.
|
default boolean |
deleteUndefined()
Delete property by undefined.
|
default <Key extends V8Value,Value extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetBiConsumer<Key,Value,E> consumer)
Invoke the bi-consumer for each of the keys.
|
<Key extends V8Value,Value extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetBiConsumer<Key,Value,E> consumer,
int batchSize)
Invoke the bi-consumer for each of the keys.
|
default <Key extends V8Value,Value extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetBiIndexedConsumer<Key,Value,E> consumer)
Invoke the bi-indexed-consumer for each of the keys.
|
<Key extends V8Value,Value extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetBiIndexedConsumer<Key,Value,E> consumer,
int batchSize)
Invoke the bi-indexed-consumer for each of the keys.
|
default <Key extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetUniConsumer<Key,E> consumer)
Invoke the uni-consumer for each of the keys.
|
default <Key extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetUniConsumer<Key,E> consumer,
int batchSize)
Invoke the uni-consumer for each of the keys.
|
default <Key extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetUniIndexedConsumer<Key,E> consumer)
Invoke the uni-indexed-consumer for each of the keys.
|
default <Key extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetUniIndexedConsumer<Key,E> consumer,
int batchSize)
Invoke the uni-indexed-consumer for each of the keys.
|
<T extends V8Value> |
get(java.lang.Object key)
Get property value by key object.
|
default java.math.BigInteger |
getBigInteger(java.lang.Object key)
Gets property value as big integer by key object.
|
java.lang.Boolean |
getBoolean(java.lang.Object key)
Gets property value as boolean by key object.
|
java.lang.Double |
getDouble(java.lang.Object key)
Gets property value as double by key object.
|
default java.lang.Float |
getFloat(java.lang.Object key)
Gets property value as float by key object.
|
int |
getIdentityHash()
Returns the identity hash for this object.
|
java.lang.Integer |
getInteger(java.lang.Object key)
Gets property value as integer by key object.
|
java.lang.Long |
getLong(java.lang.Object key)
Gets property value as long by key object.
|
default V8ValueNull |
getNull(java.lang.Object key)
Gets property value as null by key object.
|
default <T> T |
getObject(java.lang.Object key)
Gets property value as object by key object.
|
IV8ValueArray |
getOwnPropertyNames()
Gets own property names.
|
default java.util.List<java.lang.String> |
getOwnPropertyNameStrings()
Gets own property name strings.
|
<T extends V8Value> |
getPrivateProperty(java.lang.String propertyName)
Gets private property value by name string.
|
default java.lang.Boolean |
getPrivatePropertyBoolean(java.lang.String propertyName)
Gets private property value as boolean by name string.
|
default java.lang.Double |
getPrivatePropertyDouble(java.lang.String propertyName)
Gets private property value as double by name string.
|
default java.lang.Float |
getPrivatePropertyFloat(java.lang.String propertyName)
Gets private property value as float by name string.
|
default java.lang.Integer |
getPrivatePropertyInteger(java.lang.String propertyName)
Gets private property value as integer by name string.
|
default java.lang.Long |
getPrivatePropertyLong(java.lang.String propertyName)
Gets private property value as long by name string.
|
default V8ValueNull |
getPrivatePropertyNull(java.lang.String propertyName)
Gets private property value as null by name string.
|
default <T> T |
getPrivatePropertyObject(java.lang.String propertyName)
Gets private property value as object by name string.
|
default <R,T extends V8ValuePrimitive<R>> |
getPrivatePropertyPrimitive(java.lang.String propertyName)
Gets private property value as primitive by name string.
|
default java.lang.String |
getPrivatePropertyString(java.lang.String propertyName)
Gets private property value as string by name string.
|
default V8ValueUndefined |
getPrivatePropertyUndefined(java.lang.String propertyName)
Gets private property value as undefined by name string.
|
default java.time.ZonedDateTime |
getPrivatePropertyZonedDateTime(java.lang.String propertyName)
Gets private property value as zoned date time by name string.
|
<T extends V8Value> |
getProperty(java.lang.Object key)
Gets property value by key object.
|
default java.lang.Boolean |
getPropertyBoolean(java.lang.Object key)
Gets property value as boolean by key object.
|
default java.lang.Double |
getPropertyDouble(java.lang.Object key)
Gets property value as double by key object.
|
default java.lang.Float |
getPropertyFloat(java.lang.Object key)
Gets property value as float by key object.
|
default java.lang.Integer |
getPropertyInteger(java.lang.Object key)
Gets property value as integer by key object.
|
default java.lang.Long |
getPropertyLong(java.lang.Object key)
Gets property value as long by key object.
|
IV8ValueArray |
getPropertyNames()
Gets property names.
|
default <T> T |
getPropertyObject(java.lang.Object key)
Gets property value as object by key object.
|
default <R,T extends V8ValuePrimitive<R>> |
getPropertyPrimitive(java.lang.Object key)
Gets property value as primitive by key object.
|
default java.lang.String |
getPropertyString(java.lang.Object key)
Gets property value as string by key object.
|
default java.time.ZonedDateTime |
getPropertyZonedDateTime(java.lang.Object key)
Gets property value as zoned date time by key object.
|
<T extends IV8ValueObject> |
getPrototype()
Gets prototype.
|
java.lang.String |
getString(java.lang.Object key)
Gets string by key object.
|
default V8ValueUndefined |
getUndefined(java.lang.Object key)
Gets undefined by key object.
|
default java.time.ZonedDateTime |
getZonedDateTime(java.lang.Object key)
Gets zoned date time by key object.
|
boolean |
has(java.lang.Object value)
Has object property key by key object.
|
boolean |
hasInternalType(V8ValueInternalType internalType)
Has internal type.
|
default boolean |
hasNull()
Has null property key.
|
boolean |
hasOwnProperty(java.lang.Object key)
Has own property key by key object.
|
boolean |
hasPrivateProperty(java.lang.String propertyName)
Has private property by name string.
|
default boolean |
hasUndefined()
Has undefined property key.
|
default <T extends V8Value> |
invoke(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return a V8 value by function name and objects as arguments.
|
default <T extends V8Value> |
invoke(java.lang.String functionName,
V8Value... v8Values)
Invoke function and return a V8 value by function name and V8 values as arguments.
|
default java.math.BigInteger |
invokeBigInteger(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return a big integer by function name and objects as arguments.
|
default java.lang.Boolean |
invokeBoolean(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return a boolean by function name and objects as arguments.
|
default java.lang.Double |
invokeDouble(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return a double by function name and objects as arguments.
|
<T extends V8Value> |
invokeExtended(java.lang.String functionName,
boolean returnResult,
java.lang.Object... objects)
Invoke function and return a V8 value by function name, return result, objects as arguments.
|
<T extends V8Value> |
invokeExtended(java.lang.String functionName,
boolean returnResult,
V8Value... v8Values)
Invoke function and return a V8 value by function name, return result, V8 values as arguments.
|
default java.lang.Float |
invokeFloat(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return a float by function name and objects as arguments.
|
default java.lang.Integer |
invokeInteger(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return an integer by function name and objects as arguments.
|
default java.lang.Long |
invokeLong(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return a long by function name and objects as arguments.
|
default <T> T |
invokeObject(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return an object by function name and objects as arguments.
|
default java.lang.String |
invokeString(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return a string by function name and objects as arguments.
|
default void |
invokeVoid(java.lang.String functionName,
java.lang.Object... objects)
Invoke function without a return value by function name and objects as arguments.
|
default void |
invokeVoid(java.lang.String functionName,
V8Value... v8Values)
Invoke function without a return value by function name and V8 values as arguments.
|
default java.time.ZonedDateTime |
invokeZonedDateTime(java.lang.String functionName,
java.lang.Object... objects)
Invoke function and return a zoned date time by function name and objects as arguments.
|
default boolean |
isGeneratorObject()
Is generator object.
|
boolean |
set(java.lang.Object... keysAndValues)
Set property by pairs of key object and value object.
|
boolean |
set(java.lang.Object key,
java.lang.Object value)
Set property by key object and value object.
|
boolean |
setBoolean(java.lang.Object key,
java.lang.Boolean value)
Set property by key object and value boolean.
|
boolean |
setDouble(java.lang.Object key,
java.lang.Double value)
Set property by key object and value double.
|
boolean |
setInteger(java.lang.Object key,
java.lang.Integer value)
Set property by key object and value integer.
|
boolean |
setLong(java.lang.Object key,
java.lang.Long value)
Set property by key object and value long.
|
boolean |
setNull(java.lang.Object key)
Set property to null by key object.
|
boolean |
setPrivateProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Set private property by name string and value object.
|
default boolean |
setPrivatePropertyNull(java.lang.String propertyName)
Sets private property to null by name string.
|
default boolean |
setPrivatePropertyUndefined(java.lang.String propertyName)
Sets private property to undefined by name string.
|
boolean |
setProperty(java.lang.Object key,
java.lang.Object value)
Set property by key object and value object.
|
default boolean |
setPropertyNull(java.lang.Object key)
Set property to null by key object.
|
default boolean |
setPropertyUndefined(java.lang.Object key)
Set property to undefined by key object.
|
boolean |
setPrototype(IV8ValueObject v8ValueObject)
Sets prototype.
|
boolean |
setString(java.lang.Object key,
java.lang.String value)
Set property by key object and value string.
|
boolean |
setUndefined(java.lang.Object key)
Set property to undefined by key object.
|
java.lang.String |
toJsonString()
To json string.
|
java.lang.String |
toProtoString()
To proto string.
|
int |
unbind(java.lang.Object callbackReceiver)
Unbind functions and properties by object.
|
default boolean |
unbindFunction(java.lang.String functionName)
Unbind function by function name string.
|
default boolean |
unbindFunction(V8ValueString functionName)
Unbind function by function name string.
|
default boolean |
unbindFunction(V8ValueSymbol functionName)
Unbind function by function name symbol.
|
boolean |
unbindProperty(JavetCallbackContext javetCallbackContext)
Unbind property by callback context.
|
default boolean |
unbindProperty(java.lang.String propertyName)
Unbind property by property name string.
|
boolean |
unbindProperty(V8ValueString propertyName)
Unbind property by property name string.
|
boolean |
unbindProperty(V8ValueSymbol propertyName)
Unbind property by property name symbol.
|
clearWeak, close, getHandle, getType, isClosed, isWeak, isWeak, setWeak
asBoolean, asDouble, asInt, asLong, asString, equals, getV8Runtime, isNull, isNullOrUndefined, isUndefined, sameValue, strictEquals
close
toClone, toClone
static final int DEFAULT_BATCH_SIZE
static final int MIN_BATCH_SIZE
int batchGet(V8Value[] v8ValueKeys, V8Value[] v8ValueValues, int length) throws JavetException
v8ValueKeys
- the V8 value keysv8ValueValues
- the V8 value valueslength
- the lengthJavetException
- the javet exceptionjava.util.List<JavetCallbackContext> bind(java.lang.Object callbackReceiver) throws JavetException
callbackReceiver
- the callback receiverJavetException
- the javet exceptionboolean bindFunction(JavetCallbackContext javetCallbackContext) throws JavetException
It is for creating a Java code based function in V8.
javetCallbackContext
- the javet callback contextJavetException
- the javet exceptiondefault boolean bindFunction(java.lang.String functionName, java.lang.String codeString) throws JavetException
It is for creating a string based function in V8.
JS equivalent:
obj.func = function(arg1, arg2) { ... };
functionName
- the function namecodeString
- the code stringJavetException
- the javet exceptiondefault boolean bindFunction(V8ValueSymbol functionName, java.lang.String codeString) throws JavetException
It is for creating a string based function in V8.
JS equivalent:
obj.func = function(arg1, arg2) { ... };
functionName
- the function namecodeString
- the code stringJavetException
- the javet exceptiondefault boolean bindProperty(JavetCallbackContext javetCallbackContextGetter) throws JavetException
javetCallbackContextGetter
- the javet callback context getterJavetException
- the javet exceptionboolean bindProperty(JavetCallbackContext javetCallbackContextGetter, JavetCallbackContext javetCallbackContextSetter) throws JavetException
javetCallbackContextGetter
- the javet callback context getterjavetCallbackContextSetter
- the javet callback context setterJavetException
- the javet exceptionboolean delete(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault boolean deleteNull() throws JavetException
JavetException
- the javet exceptionboolean deletePrivateProperty(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault boolean deleteUndefined() throws JavetException
JavetException
- the javet exceptiondefault <Key extends V8Value,E extends java.lang.Throwable> int forEach(IJavetUniConsumer<Key,E> consumer) throws JavetException, E extends java.lang.Throwable
Key
- the type of keyE
- the type of exceptionconsumer
- the consumerJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
default <Key extends V8Value,E extends java.lang.Throwable> int forEach(IJavetUniConsumer<Key,E> consumer, int batchSize) throws JavetException, E extends java.lang.Throwable
Key
- the type of keyE
- the type of exceptionconsumer
- the consumerbatchSize
- the batch sizeJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
default <Key extends V8Value,E extends java.lang.Throwable> int forEach(IJavetUniIndexedConsumer<Key,E> consumer) throws JavetException, E extends java.lang.Throwable
Key
- the type of keyE
- the type of exceptionconsumer
- the consumerJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
default <Key extends V8Value,E extends java.lang.Throwable> int forEach(IJavetUniIndexedConsumer<Key,E> consumer, int batchSize) throws JavetException, E extends java.lang.Throwable
Key
- the type of keyE
- the type of exceptionconsumer
- the consumerbatchSize
- the batch sizeJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
default <Key extends V8Value,Value extends V8Value,E extends java.lang.Throwable> int forEach(IJavetBiConsumer<Key,Value,E> consumer) throws JavetException, E extends java.lang.Throwable
Key
- the type of keyValue
- the type of valueE
- the type of exceptionconsumer
- the consumerJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
<Key extends V8Value,Value extends V8Value,E extends java.lang.Throwable> int forEach(IJavetBiConsumer<Key,Value,E> consumer, int batchSize) throws JavetException, E extends java.lang.Throwable
Key
- the type of keyValue
- the type of valueE
- the type of exceptionconsumer
- the consumerbatchSize
- the batch sizeJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
default <Key extends V8Value,Value extends V8Value,E extends java.lang.Throwable> int forEach(IJavetBiIndexedConsumer<Key,Value,E> consumer) throws JavetException, E extends java.lang.Throwable
Key
- the type of keyValue
- the type of valueE
- the type of exceptionconsumer
- the consumerJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
<Key extends V8Value,Value extends V8Value,E extends java.lang.Throwable> int forEach(IJavetBiIndexedConsumer<Key,Value,E> consumer, int batchSize) throws JavetException, E extends java.lang.Throwable
Key
- the type of keyValue
- the type of valueE
- the type of exceptionconsumer
- the consumerbatchSize
- the batch sizeJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
@CheckReturnValue <T extends V8Value> T get(java.lang.Object key) throws JavetException
The return value must be consumed, otherwise memory leak may occur.
T
- the type parameterkey
- the property keyJavetException
- the javet exceptiondefault java.math.BigInteger getBigInteger(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptionjava.lang.Boolean getBoolean(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptionjava.lang.Double getDouble(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault java.lang.Float getFloat(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptionint getIdentityHash() throws JavetException
The return value will never be 0. Also, it is not guaranteed to be unique.
JavetException
- the javet exceptionjava.lang.Integer getInteger(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptionjava.lang.Long getLong(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault V8ValueNull getNull(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault <T> T getObject(java.lang.Object key) throws JavetException
T
- the type parameterkey
- the keyJavetException
- the javet exceptiondefault java.util.List<java.lang.String> getOwnPropertyNameStrings() throws JavetException
JavetException
- the javet exception@CheckReturnValue IV8ValueArray getOwnPropertyNames() throws JavetException
The return value must be consumed, otherwise memory leak may occur.
JavetException
- the javet exception@CheckReturnValue <T extends V8Value> T getPrivateProperty(java.lang.String propertyName) throws JavetException
The return value must be consumed, otherwise memory leak may occur.
T
- the type parameterpropertyName
- the property nameJavetException
- the javet exceptiondefault java.lang.Boolean getPrivatePropertyBoolean(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault java.lang.Double getPrivatePropertyDouble(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault java.lang.Float getPrivatePropertyFloat(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault java.lang.Integer getPrivatePropertyInteger(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault java.lang.Long getPrivatePropertyLong(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault V8ValueNull getPrivatePropertyNull(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault <T> T getPrivatePropertyObject(java.lang.String propertyName) throws JavetException
T
- the type parameterpropertyName
- the property nameJavetException
- the javet exceptiondefault <R,T extends V8ValuePrimitive<R>> R getPrivatePropertyPrimitive(java.lang.String propertyName) throws JavetException
R
- the type parameterT
- the type parameterpropertyName
- the property nameJavetException
- the javet exceptiondefault java.lang.String getPrivatePropertyString(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault V8ValueUndefined getPrivatePropertyUndefined(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault java.time.ZonedDateTime getPrivatePropertyZonedDateTime(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exception@CheckReturnValue <T extends V8Value> T getProperty(java.lang.Object key) throws JavetException
The return value must be consumed, otherwise memory leak may occur.
T
- the type parameterkey
- the keyJavetException
- the javet exceptiondefault java.lang.Boolean getPropertyBoolean(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault java.lang.Double getPropertyDouble(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault java.lang.Float getPropertyFloat(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault java.lang.Integer getPropertyInteger(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault java.lang.Long getPropertyLong(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exception@CheckReturnValue IV8ValueArray getPropertyNames() throws JavetException
The return value must be consumed, otherwise memory leak may occur.
JavetException
- the javet exceptiondefault <T> T getPropertyObject(java.lang.Object key) throws JavetException
T
- the type parameterkey
- the keyJavetException
- the javet exceptiondefault <R,T extends V8ValuePrimitive<R>> R getPropertyPrimitive(java.lang.Object key) throws JavetException
R
- the type parameterT
- the type parameterkey
- the keyJavetException
- the javet exceptiondefault java.lang.String getPropertyString(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault java.time.ZonedDateTime getPropertyZonedDateTime(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exception@CheckReturnValue <T extends IV8ValueObject> T getPrototype() throws JavetException
The return value must be consumed, otherwise memory leak may occur.
T
- the type parameterJavetException
- the javet exceptionjava.lang.String getString(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault V8ValueUndefined getUndefined(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault java.time.ZonedDateTime getZonedDateTime(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptionboolean has(java.lang.Object value) throws JavetException
value
- the valueJavetException
- the javet exceptionboolean hasInternalType(V8ValueInternalType internalType) throws JavetException
This API reveals the V8 internal implementation detail. A typical JavaScript object may look the same in JavaScript (typeof), but is very different internally.
internalType
- the internal typeJavetException
- the javet exceptiondefault boolean hasNull() throws JavetException
JavetException
- the javet exceptionboolean hasOwnProperty(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptionboolean hasPrivateProperty(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault boolean hasUndefined() throws JavetException
JavetException
- the javet exception@CheckReturnValue default <T extends V8Value> T invoke(java.lang.String functionName, java.lang.Object... objects) throws JavetException
The return value must be consumed, otherwise memory leak may occur.
T
- the type parameterfunctionName
- the function nameobjects
- the objectsJavetException
- the javet exception@CheckReturnValue default <T extends V8Value> T invoke(java.lang.String functionName, V8Value... v8Values) throws JavetException
The return value must be consumed, otherwise memory leak may occur.
T
- the type parameterfunctionName
- the function namev8Values
- the V8 valuesJavetException
- the javet exceptiondefault java.math.BigInteger invokeBigInteger(java.lang.String functionName, java.lang.Object... objects) throws JavetException
functionName
- the function nameobjects
- the objectsJavetException
- the javet exceptiondefault java.lang.Boolean invokeBoolean(java.lang.String functionName, java.lang.Object... objects) throws JavetException
functionName
- the function nameobjects
- the objectsJavetException
- the javet exceptiondefault java.lang.Double invokeDouble(java.lang.String functionName, java.lang.Object... objects) throws JavetException
functionName
- the function nameobjects
- the objectsJavetException
- the javet exception@CheckReturnValue <T extends V8Value> T invokeExtended(java.lang.String functionName, boolean returnResult, java.lang.Object... objects) throws JavetException
The return value must be consumed, otherwise memory leak may occur.
T
- the type parameterfunctionName
- the function namereturnResult
- the return resultobjects
- the objectsJavetException
- the javet exception@CheckReturnValue <T extends V8Value> T invokeExtended(java.lang.String functionName, boolean returnResult, V8Value... v8Values) throws JavetException
The return value must be consumed, otherwise memory leak may occur.
T
- the type parameterfunctionName
- the function namereturnResult
- the return resultv8Values
- the V8 valuesJavetException
- the javet exceptiondefault java.lang.Float invokeFloat(java.lang.String functionName, java.lang.Object... objects) throws JavetException
functionName
- the function nameobjects
- the objectsJavetException
- the javet exceptiondefault java.lang.Integer invokeInteger(java.lang.String functionName, java.lang.Object... objects) throws JavetException
functionName
- the function nameobjects
- the objectsJavetException
- the javet exceptiondefault java.lang.Long invokeLong(java.lang.String functionName, java.lang.Object... objects) throws JavetException
functionName
- the function nameobjects
- the objectsJavetException
- the javet exceptiondefault <T> T invokeObject(java.lang.String functionName, java.lang.Object... objects) throws JavetException
T
- the type parameterfunctionName
- the function nameobjects
- the objectsJavetException
- the javet exceptiondefault java.lang.String invokeString(java.lang.String functionName, java.lang.Object... objects) throws JavetException
functionName
- the function nameobjects
- the objectsJavetException
- the javet exceptiondefault void invokeVoid(java.lang.String functionName, java.lang.Object... objects) throws JavetException
functionName
- the function nameobjects
- the objectsJavetException
- the javet exceptiondefault void invokeVoid(java.lang.String functionName, V8Value... v8Values) throws JavetException
functionName
- the function namev8Values
- the V8 valuesJavetException
- the javet exceptiondefault java.time.ZonedDateTime invokeZonedDateTime(java.lang.String functionName, java.lang.Object... objects) throws JavetException
functionName
- the function nameobjects
- the objectsJavetException
- the javet exceptiondefault boolean isGeneratorObject() throws JavetException
JavetException
- the javet exceptionboolean set(java.lang.Object key, java.lang.Object value) throws JavetException
key
- the keyvalue
- the valueJavetException
- the javet exceptionboolean set(java.lang.Object... keysAndValues) throws JavetException
keysAndValues
- the keys and valuesJavetException
- the javet exceptionboolean setBoolean(java.lang.Object key, java.lang.Boolean value) throws JavetException
key
- the keyvalue
- the valueJavetException
- the javet exceptionboolean setDouble(java.lang.Object key, java.lang.Double value) throws JavetException
key
- the keyvalue
- the valueJavetException
- the javet exceptionboolean setInteger(java.lang.Object key, java.lang.Integer value) throws JavetException
key
- the keyvalue
- the valueJavetException
- the javet exceptionboolean setLong(java.lang.Object key, java.lang.Long value) throws JavetException
key
- the keyvalue
- the valueJavetException
- the javet exceptionboolean setNull(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptionboolean setPrivateProperty(java.lang.String propertyName, java.lang.Object propertyValue) throws JavetException
propertyName
- the property namepropertyValue
- the property valueJavetException
- the javet exceptiondefault boolean setPrivatePropertyNull(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptiondefault boolean setPrivatePropertyUndefined(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptionboolean setProperty(java.lang.Object key, java.lang.Object value) throws JavetException
key
- the keyvalue
- the valueJavetException
- the javet exceptiondefault boolean setPropertyNull(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptiondefault boolean setPropertyUndefined(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptionboolean setPrototype(IV8ValueObject v8ValueObject) throws JavetException
v8ValueObject
- the V8 value objectJavetException
- the javet exceptionboolean setString(java.lang.Object key, java.lang.String value) throws JavetException
key
- the keyvalue
- the valueJavetException
- the javet exceptionboolean setUndefined(java.lang.Object key) throws JavetException
key
- the keyJavetException
- the javet exceptionjava.lang.String toJsonString()
JS equivalent:
JSON.stringify(obj);
java.lang.String toProtoString()
int unbind(java.lang.Object callbackReceiver) throws JavetException
callbackReceiver
- the callback receiverJavetException
- the javet exceptiondefault boolean unbindFunction(java.lang.String functionName) throws JavetException
functionName
- the function nameJavetException
- the javet exceptiondefault boolean unbindFunction(V8ValueString functionName) throws JavetException
functionName
- the function nameJavetException
- the javet exceptiondefault boolean unbindFunction(V8ValueSymbol functionName) throws JavetException
functionName
- the function nameJavetException
- the javet exceptionboolean unbindProperty(JavetCallbackContext javetCallbackContext) throws JavetException
javetCallbackContext
- the javet callback contextJavetException
- the javet exceptiondefault boolean unbindProperty(java.lang.String propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptionboolean unbindProperty(V8ValueString propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exceptionboolean unbindProperty(V8ValueSymbol propertyName) throws JavetException
propertyName
- the property nameJavetException
- the javet exception