public final class V8Internal
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(IV8ValueReference iV8ValueReference)
Adds a reference to the V8 runtime.
|
int |
arrayGetLength(IV8ValueArray iV8ValueArray)
Gets the length of a V8 array.
|
int |
arrayGetLength(IV8ValueTypedArray iV8ValueTypedArray)
Gets the length of a V8 typed array.
|
int |
batchArrayGet(IV8ValueArray iV8ValueArray,
V8Value[] v8Values,
int startIndex,
int endIndex)
Batch gets values from a V8 array.
|
int |
batchObjectGet(IV8ValueObject iV8ValueObject,
V8Value[] v8ValueKeys,
V8Value[] v8ValueValues,
int length)
Batch gets keys and values from a V8 object.
|
V8ValueBoolean |
booleanObjectValueOf(V8ValueBooleanObject v8ValueBooleanObject)
Gets the primitive boolean value of a V8 boolean object.
|
void |
clearWeak(IV8ValueReference iV8ValueReference)
Clears the weak reference state of a V8 value reference.
|
<T extends V8Value> |
cloneV8Value(IV8ValueReference iV8ValueReference,
boolean referenceCopy)
Clones a V8 value.
|
<T extends V8Value> |
contextGet(IV8Context iV8Context,
int index)
Gets a value from a V8 context by index.
|
int |
contextGetLength(IV8Context iV8Context)
Gets the length of a V8 context.
|
boolean |
contextIsContextType(IV8Context iV8Context,
int contextTypeId)
Checks whether a V8 context matches the given context type ID.
|
boolean |
contextSetLength(IV8Context iV8Context,
int length)
Sets the length of a V8 context.
|
V8ValueNumber<?> |
doubleObjectValueOf(V8ValueDoubleObject v8ValueDoubleObject)
Gets the primitive number value of a V8 double object.
|
boolean |
equals(IV8ValueReference iV8ValueReference1,
IV8ValueReference iV8ValueReference2)
Tests whether two V8 value references are equal.
|
<T extends V8Value> |
functionCall(IV8ValueObject iV8ValueObject,
V8Value receiver,
boolean returnResult,
V8Value... v8Values)
Calls a V8 function.
|
<T extends V8Value> |
functionCallAsConstructor(IV8ValueObject iV8ValueObject,
V8Value... v8Values)
Calls a V8 function as a constructor.
|
boolean |
functionCanDiscardCompiled(IV8ValueFunction iV8ValueFunction)
Checks whether a V8 function can discard its compiled code.
|
boolean |
functionCopyScopeInfoFrom(IV8ValueFunction targetIV8ValueFunction,
IV8ValueFunction sourceIV8ValueFunction)
Copies scope info from one V8 function to another.
|
boolean |
functionDiscardCompiled(IV8ValueFunction iV8ValueFunction)
Discards the compiled code of a V8 function.
|
java.lang.String[] |
functionGetArguments(IV8ValueFunction iV8ValueFunction)
Gets the argument names of a V8 function.
|
byte[] |
functionGetCachedData(IV8ValueFunction iV8ValueFunction)
Gets the cached data of a V8 function.
|
V8Context |
functionGetContext(IV8ValueFunction iV8ValueFunction)
Gets the context of a V8 function.
|
IV8ValueArray |
functionGetInternalProperties(IV8ValueFunction iV8ValueFunction)
Gets the internal properties of a V8 function.
|
JSFunctionType |
functionGetJSFunctionType(IV8ValueFunction iV8ValueFunction)
Gets the JS function type of a V8 function.
|
JSScopeType |
functionGetJSScopeType(IV8ValueFunction iV8ValueFunction)
Gets the JS scope type of a V8 function.
|
IV8ValueArray |
functionGetScopeInfos(IV8ValueFunction iV8ValueFunction,
IV8ValueFunction.GetScopeInfosOptions options)
Gets the scope infos of a V8 function.
|
IV8ValueFunction.ScriptSource |
functionGetScriptSource(IV8ValueFunction iV8ValueFunction)
Gets the script source of a V8 function.
|
java.lang.String |
functionGetSourceCode(IV8ValueFunction iV8ValueFunction)
Gets the source code of a V8 function.
|
boolean |
functionIsCompiled(IV8ValueFunction iV8ValueFunction)
Checks whether a V8 function is compiled.
|
boolean |
functionIsWrapped(IV8ValueFunction iV8ValueFunction)
Checks whether a V8 function is wrapped.
|
boolean |
functionSetContext(IV8ValueFunction iV8ValueFunction,
V8Context v8Context)
Sets the context of a V8 function.
|
boolean |
functionSetScriptSource(IV8ValueFunction iV8ValueFunction,
IV8ValueFunction.ScriptSource scriptSource,
boolean cloneScript)
Sets the script source of a V8 function.
|
boolean |
functionSetSourceCode(IV8ValueFunction iV8ValueFunction,
java.lang.String sourceCode,
boolean cloneScript)
Sets the source code of a V8 function.
|
boolean |
hasInternalType(IV8ValueObject iV8ValueObject,
V8ValueInternalType internalType)
Checks whether a V8 object has the given internal type.
|
V8ValueInteger |
integerObjectValueOf(V8ValueIntegerObject v8ValueIntegerObject)
Gets the primitive integer value of a V8 integer object.
|
boolean |
isWeak(IV8ValueReference iV8ValueReference)
Checks whether a V8 value reference is weak.
|
V8ValueLong |
longObjectValueOf(V8ValueLongObject v8ValueLongObject)
Gets the primitive long value of a V8 long object.
|
V8ValueArray |
mapAsArray(IV8ValueMap iV8ValueMap)
Converts a V8 map to a V8 array.
|
void |
mapClear(IV8ValueMap iV8ValueMap)
Clears all entries from a V8 map.
|
boolean |
mapDelete(IV8ValueMap iV8ValueMap,
V8Value key)
Deletes an entry from a V8 map by key.
|
<T extends V8Value> |
mapGet(IV8ValueMap iV8ValueMap,
V8Value key)
Gets a value from a V8 map by key.
|
java.lang.Boolean |
mapGetBoolean(IV8ValueMap iV8ValueMap,
V8Value key)
Gets a boolean value from a V8 map by key.
|
java.lang.Double |
mapGetDouble(IV8ValueMap iV8ValueMap,
V8Value key)
Gets a double value from a V8 map by key.
|
java.lang.Integer |
mapGetInteger(IV8ValueMap iV8ValueMap,
V8Value key)
Gets an integer value from a V8 map by key.
|
java.lang.Long |
mapGetLong(IV8ValueMap iV8ValueMap,
V8Value key)
Gets a long value from a V8 map by key.
|
int |
mapGetSize(IV8ValueMap iV8ValueMap)
Gets the size of a V8 map.
|
java.lang.String |
mapGetString(IV8ValueMap iV8ValueMap,
V8Value key)
Gets a string value from a V8 map by key.
|
boolean |
mapHas(IV8ValueMap iV8ValueMap,
V8Value value)
Checks whether a V8 map contains the given value.
|
boolean |
mapSet(IV8ValueMap iV8ValueMap,
V8Value... v8Values)
Sets key-value pairs in a V8 map.
|
boolean |
mapSetBoolean(IV8ValueMap iV8ValueMap,
V8Value key,
boolean value)
Sets a boolean value in a V8 map.
|
boolean |
mapSetDouble(IV8ValueMap iV8ValueMap,
V8Value key,
double value)
Sets a double value in a V8 map.
|
boolean |
mapSetInteger(IV8ValueMap iV8ValueMap,
V8Value key,
int value)
Sets an integer value in a V8 map.
|
boolean |
mapSetLong(IV8ValueMap iV8ValueMap,
V8Value key,
long value)
Sets a long value in a V8 map.
|
boolean |
mapSetNull(IV8ValueMap iV8ValueMap,
V8Value key)
Sets a null value in a V8 map.
|
boolean |
mapSetString(IV8ValueMap iV8ValueMap,
V8Value key,
java.lang.String value)
Sets a string value in a V8 map.
|
boolean |
mapSetUndefined(IV8ValueMap iV8ValueMap,
V8Value key)
Sets an undefined value in a V8 map.
|
<T extends V8Value> |
moduleEvaluate(IV8Module iV8Module,
boolean resultRequired)
Evaluates a V8 module.
|
byte[] |
moduleGetCachedData(IV8Module iV8Module)
Gets the cached data of a V8 module.
|
V8ValueError |
moduleGetException(IV8Module iV8Module)
Gets the exception from a V8 module.
|
int |
moduleGetIdentityHash(IV8Module iV8Module)
Gets the identity hash of a V8 module.
|
V8Value |
moduleGetNamespace(IV8Module iV8Module)
Gets the namespace of a V8 module.
|
java.lang.String |
moduleGetResourceName(IV8Module iV8Module)
Gets the resource name of a V8 module.
|
int |
moduleGetScriptId(IV8Module iV8Module)
Gets the script ID of a V8 module.
|
int |
moduleGetStatus(IV8Module iV8Module)
Gets the status of a V8 module.
|
boolean |
moduleInstantiate(IV8Module iV8Module)
Instantiates a V8 module.
|
boolean |
moduleIsSourceTextModule(IV8Module iV8Module)
Checks whether a V8 module is a source text module.
|
boolean |
moduleIsSyntheticModule(IV8Module iV8Module)
Checks whether a V8 module is a synthetic module.
|
boolean |
objectDelete(IV8ValueObject iV8ValueObject,
V8Value key)
Deletes a property from a V8 object by key.
|
boolean |
objectDeletePrivateProperty(IV8ValueObject iV8ValueObject,
java.lang.String propertyName)
Deletes a private property from a V8 object.
|
<T extends V8Value> |
objectGet(IV8ValueObject iV8ValueObject,
V8Value key)
Gets a value from a V8 object by key.
|
java.lang.Boolean |
objectGetBoolean(IV8ValueObject iV8ValueObject,
V8Value key)
Gets a boolean value from a V8 object by key.
|
java.lang.Double |
objectGetDouble(IV8ValueObject iV8ValueObject,
V8Value key)
Gets a double value from a V8 object by key.
|
int |
objectGetIdentityHash(IV8ValueReference iV8ValueReference)
Gets the identity hash of a V8 value reference.
|
java.lang.Integer |
objectGetInteger(IV8ValueObject iV8ValueObject,
V8Value key)
Gets an integer value from a V8 object by key.
|
java.lang.Long |
objectGetLong(IV8ValueObject iV8ValueObject,
V8Value key)
Gets a long value from a V8 object by key.
|
IV8ValueArray |
objectGetOwnPropertyNames(IV8ValueObject iV8ValueObject)
Gets the own property names of a V8 object.
|
<T extends V8Value> |
objectGetPrivateProperty(IV8ValueObject iV8ValueObject,
java.lang.String propertyName)
Gets a private property from a V8 object.
|
<T extends V8Value> |
objectGetProperty(IV8ValueObject iV8ValueObject,
V8Value key)
Gets a property from a V8 object by key.
|
IV8ValueArray |
objectGetPropertyNames(IV8ValueObject iV8ValueObject)
Gets all property names of a V8 object.
|
<T extends IV8ValueObject> |
objectGetPrototype(IV8ValueObject iV8ValueObject)
Gets the prototype of a V8 object.
|
java.lang.String |
objectGetString(IV8ValueObject iV8ValueObject,
V8Value key)
Gets a string value from a V8 object by key.
|
boolean |
objectHas(IV8ValueObject iV8ValueObject,
V8Value value)
Checks whether a V8 object has the given value.
|
boolean |
objectHasOwnProperty(IV8ValueObject iV8ValueObject,
V8Value key)
Checks whether a V8 object has an own property with the given key.
|
boolean |
objectHasPrivateProperty(IV8ValueObject iV8ValueObject,
java.lang.String propertyName)
Checks whether a V8 object has a private property with the given name.
|
<T extends V8Value> |
objectInvoke(IV8ValueObject iV8ValueObject,
java.lang.String functionName,
boolean returnResult,
V8Value... v8Values)
Invokes a function on a V8 object by function name.
|
boolean |
objectIsFrozen(IV8ValueObject iV8ValueObject)
Checks whether a V8 object is frozen.
|
boolean |
objectIsSealed(IV8ValueObject iV8ValueObject)
Checks whether a V8 object is sealed.
|
boolean |
objectSet(IV8ValueObject iV8ValueObject,
V8Value... v8Values)
Sets key-value pairs on a V8 object.
|
boolean |
objectSetAccessor(IV8ValueObject iV8ValueObject,
V8Value propertyName,
JavetCallbackContext javetCallbackContextGetter,
JavetCallbackContext javetCallbackContextSetter)
Sets an accessor (getter/setter) on a V8 object.
|
boolean |
objectSetBoolean(IV8ValueObject iV8ValueObject,
V8Value key,
boolean value)
Sets a boolean value on a V8 object.
|
boolean |
objectSetDouble(IV8ValueObject iV8ValueObject,
V8Value key,
double value)
Sets a double value on a V8 object.
|
boolean |
objectSetInteger(IV8ValueObject iV8ValueObject,
V8Value key,
int value)
Sets an integer value on a V8 object.
|
boolean |
objectSetLong(IV8ValueObject iV8ValueObject,
V8Value key,
long value)
Sets a long value on a V8 object.
|
boolean |
objectSetNull(IV8ValueObject iV8ValueObject,
V8Value key)
Sets a null value on a V8 object.
|
boolean |
objectSetPrivateProperty(IV8ValueObject iV8ValueObject,
java.lang.String propertyName,
V8Value propertyValue)
Sets a private property on a V8 object.
|
boolean |
objectSetProperty(IV8ValueObject iV8ValueObject,
V8Value key,
V8Value value)
Sets a property on a V8 object.
|
boolean |
objectSetPrototype(IV8ValueObject iV8ValueObject,
IV8ValueObject iV8ValueObjectPrototype)
Sets the prototype of a V8 object.
|
boolean |
objectSetString(IV8ValueObject iV8ValueObject,
V8Value key,
java.lang.String value)
Sets a string value on a V8 object.
|
boolean |
objectSetUndefined(IV8ValueObject iV8ValueObject,
V8Value key)
Sets an undefined value on a V8 object.
|
java.lang.String |
objectToProtoString(IV8ValueReference iV8ValueReference)
Gets the proto string representation of a V8 value reference.
|
<T extends V8ValuePromise> |
promiseCatch(IV8ValuePromise iV8ValuePromise,
IV8ValueFunction functionHandle)
Registers a catch handler on a V8 promise.
|
V8ValuePromise |
promiseGetPromise(IV8ValuePromise iV8ValuePromise)
Gets the promise from a V8 promise.
|
<T extends V8Value> |
promiseGetResult(IV8ValuePromise iV8ValuePromise)
Gets the result of a V8 promise.
|
int |
promiseGetState(IV8ValuePromise iV8ValuePromise)
Gets the state of a V8 promise.
|
boolean |
promiseHasHandler(IV8ValuePromise iV8ValuePromise)
Checks whether a V8 promise has a handler.
|
void |
promiseMarkAsHandled(IV8ValuePromise iV8ValuePromise)
Marks a V8 promise as handled.
|
boolean |
promiseReject(V8ValuePromise v8ValuePromise,
V8Value v8Value)
Rejects a V8 promise with a value.
|
boolean |
promiseResolve(V8ValuePromise v8ValuePromise,
V8Value v8Value)
Resolves a V8 promise with a value.
|
<T extends V8ValuePromise> |
promiseThen(IV8ValuePromise iV8ValuePromise,
IV8ValueFunction functionFulfilledHandle,
IV8ValueFunction functionRejectedHandle)
Registers then handlers on a V8 promise.
|
V8ValueObject |
proxyGetHandler(IV8ValueProxy iV8ValueProxy)
Gets the handler of a V8 proxy.
|
V8ValueObject |
proxyGetTarget(IV8ValueProxy iV8ValueProxy)
Gets the target of a V8 proxy.
|
boolean |
proxyIsRevoked(IV8ValueProxy iV8ValueProxy)
Checks whether a V8 proxy is revoked.
|
void |
proxyRevoke(IV8ValueProxy iV8ValueProxy)
Revokes a V8 proxy.
|
void |
removeReference(IV8ValueReference iV8ValueReference)
Removes a reference from the V8 runtime.
|
boolean |
sameValue(IV8ValueObject iV8ValueObject1,
IV8ValueObject iV8ValueObject2)
Tests whether two V8 objects have the same value (using SameValue semantics).
|
byte[] |
scriptGetCachedData(IV8Script iV8Script)
Gets the cached data of a V8 script.
|
java.lang.String |
scriptGetResourceName(IV8Script iV8Script)
Gets the resource name of a V8 script.
|
<T extends V8Value> |
scriptRun(IV8Script iV8Script,
boolean resultRequired)
Runs a V8 script.
|
void |
setAdd(IV8ValueSet iV8ValueSet,
V8Value key)
Adds a value to a V8 set.
|
V8ValueArray |
setAsArray(IV8ValueSet iV8ValueSet)
Converts a V8 set to a V8 array.
|
void |
setClear(IV8ValueSet iV8ValueSet)
Clears all values from a V8 set.
|
boolean |
setDelete(IV8ValueSet iV8ValueSet,
V8Value key)
Deletes a value from a V8 set.
|
int |
setGetSize(IV8ValueSet iV8ValueSet)
Gets the size of a V8 set.
|
boolean |
setHas(IV8ValueSet iV8ValueSet,
V8Value key)
Checks whether a V8 set contains the given value.
|
void |
setWeak(IV8ValueReference iV8ValueReference)
Sets a V8 value reference to weak.
|
boolean |
strictEquals(IV8ValueObject iV8ValueObject1,
IV8ValueObject iV8ValueObject2)
Tests whether two V8 objects are strictly equal.
|
V8ValueString |
stringObjectValueOf(V8ValueStringObject v8ValueStringObject)
Gets the primitive string value of a V8 string object.
|
java.lang.String |
symbolDescription(V8ValueSymbol v8ValueSymbol)
Gets the description of a V8 symbol.
|
V8ValueSymbol |
symbolObjectValueOf(V8ValueSymbolObject v8ValueSymbolObject)
Gets the primitive symbol value of a V8 symbol object.
|
V8ValueSymbolObject |
symbolToObject(V8ValueSymbol v8ValueSymbol)
Converts a V8 symbol to a V8 symbol object.
|
java.lang.String |
toString(IV8ValueReference iV8ValueReference)
Gets the string representation of a V8 value reference.
|
public void addReference(IV8ValueReference iV8ValueReference)
iV8ValueReference - the V8 value referencepublic int arrayGetLength(IV8ValueArray iV8ValueArray) throws JavetException
iV8ValueArray - the V8 value arrayJavetException - if a V8 error occurspublic int arrayGetLength(IV8ValueTypedArray iV8ValueTypedArray) throws JavetException
iV8ValueTypedArray - the V8 value typed arrayJavetException - if a V8 error occurspublic int batchArrayGet(IV8ValueArray iV8ValueArray, V8Value[] v8Values, int startIndex, int endIndex) throws JavetException
iV8ValueArray - the V8 value arrayv8Values - the output V8 valuesstartIndex - the start indexendIndex - the end indexJavetException - if a V8 error occurspublic int batchObjectGet(IV8ValueObject iV8ValueObject, V8Value[] v8ValueKeys, V8Value[] v8ValueValues, int length) throws JavetException
iV8ValueObject - the V8 value objectv8ValueKeys - the output V8 value keysv8ValueValues - the output V8 value valueslength - the lengthJavetException - if a V8 error occurspublic V8ValueBoolean booleanObjectValueOf(V8ValueBooleanObject v8ValueBooleanObject)
v8ValueBooleanObject - the V8 value boolean objectpublic void clearWeak(IV8ValueReference iV8ValueReference) throws JavetException
iV8ValueReference - the V8 value referenceJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T cloneV8Value(IV8ValueReference iV8ValueReference, boolean referenceCopy) throws JavetException
T - the type of V8 valueiV8ValueReference - the V8 value reference to clonereferenceCopy - whether to perform a reference copyJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T contextGet(IV8Context iV8Context, int index) throws JavetException
T - the type of V8 valueiV8Context - the V8 contextindex - the indexJavetException - if a V8 error occurspublic int contextGetLength(IV8Context iV8Context) throws JavetException
iV8Context - the V8 contextJavetException - if a V8 error occurspublic boolean contextIsContextType(IV8Context iV8Context, int contextTypeId) throws JavetException
iV8Context - the V8 contextcontextTypeId - the context type IDJavetException - if a V8 error occurspublic boolean contextSetLength(IV8Context iV8Context, int length) throws JavetException
iV8Context - the V8 contextlength - the lengthJavetException - if a V8 error occurspublic V8ValueNumber<?> doubleObjectValueOf(V8ValueDoubleObject v8ValueDoubleObject)
v8ValueDoubleObject - the V8 value double objectpublic boolean equals(IV8ValueReference iV8ValueReference1, IV8ValueReference iV8ValueReference2) throws JavetException
iV8ValueReference1 - the first V8 value referenceiV8ValueReference2 - the second V8 value referenceJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T functionCall(IV8ValueObject iV8ValueObject, V8Value receiver, boolean returnResult, V8Value... v8Values) throws JavetException
T - the type of return valueiV8ValueObject - the V8 value object representing the functionreceiver - the receiver (this) for the callreturnResult - whether to return the resultv8Values - the argumentsJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T functionCallAsConstructor(IV8ValueObject iV8ValueObject, V8Value... v8Values) throws JavetException
T - the type of return valueiV8ValueObject - the V8 value object representing the constructorv8Values - the argumentsJavetException - if a V8 error occurspublic boolean functionCanDiscardCompiled(IV8ValueFunction iV8ValueFunction)
iV8ValueFunction - the V8 value functionpublic boolean functionCopyScopeInfoFrom(IV8ValueFunction targetIV8ValueFunction, IV8ValueFunction sourceIV8ValueFunction) throws JavetException
targetIV8ValueFunction - the target V8 value functionsourceIV8ValueFunction - the source V8 value functionJavetException - if a V8 error occurspublic boolean functionDiscardCompiled(IV8ValueFunction iV8ValueFunction)
iV8ValueFunction - the V8 value functionpublic java.lang.String[] functionGetArguments(IV8ValueFunction iV8ValueFunction) throws JavetException
iV8ValueFunction - the V8 value functionJavetException - if a V8 error occurspublic byte[] functionGetCachedData(IV8ValueFunction iV8ValueFunction) throws JavetException
iV8ValueFunction - the V8 value functionJavetException - if a V8 error occurs@CheckReturnValue public V8Context functionGetContext(IV8ValueFunction iV8ValueFunction) throws JavetException
iV8ValueFunction - the V8 value functionJavetException - if a V8 error occurs@CheckReturnValue public IV8ValueArray functionGetInternalProperties(IV8ValueFunction iV8ValueFunction) throws JavetException
iV8ValueFunction - the V8 value functionJavetException - if a V8 error occurspublic JSFunctionType functionGetJSFunctionType(IV8ValueFunction iV8ValueFunction)
iV8ValueFunction - the V8 value functionpublic JSScopeType functionGetJSScopeType(IV8ValueFunction iV8ValueFunction)
iV8ValueFunction - the V8 value function@CheckReturnValue public IV8ValueArray functionGetScopeInfos(IV8ValueFunction iV8ValueFunction, IV8ValueFunction.GetScopeInfosOptions options) throws JavetException
iV8ValueFunction - the V8 value functionoptions - the options for getting scope infosJavetException - if a V8 error occurspublic IV8ValueFunction.ScriptSource functionGetScriptSource(IV8ValueFunction iV8ValueFunction) throws JavetException
iV8ValueFunction - the V8 value functionJavetException - if a V8 error occurspublic java.lang.String functionGetSourceCode(IV8ValueFunction iV8ValueFunction) throws JavetException
iV8ValueFunction - the V8 value functionJavetException - if a V8 error occurspublic boolean functionIsCompiled(IV8ValueFunction iV8ValueFunction)
iV8ValueFunction - the V8 value functionpublic boolean functionIsWrapped(IV8ValueFunction iV8ValueFunction)
iV8ValueFunction - the V8 value functionpublic boolean functionSetContext(IV8ValueFunction iV8ValueFunction, V8Context v8Context) throws JavetException
iV8ValueFunction - the V8 value functionv8Context - the V8 contextJavetException - if a V8 error occurspublic boolean functionSetScriptSource(IV8ValueFunction iV8ValueFunction, IV8ValueFunction.ScriptSource scriptSource, boolean cloneScript) throws JavetException
iV8ValueFunction - the V8 value functionscriptSource - the script sourcecloneScript - whether to clone the scriptJavetException - if a V8 error occurspublic boolean functionSetSourceCode(IV8ValueFunction iV8ValueFunction, java.lang.String sourceCode, boolean cloneScript) throws JavetException
iV8ValueFunction - the V8 value functionsourceCode - the source codecloneScript - whether to clone the scriptJavetException - if a V8 error occurspublic boolean hasInternalType(IV8ValueObject iV8ValueObject, V8ValueInternalType internalType)
iV8ValueObject - the V8 value objectinternalType - the V8 value internal typepublic V8ValueInteger integerObjectValueOf(V8ValueIntegerObject v8ValueIntegerObject) throws JavetException
v8ValueIntegerObject - the V8 value integer objectJavetException - if a V8 error occurspublic boolean isWeak(IV8ValueReference iV8ValueReference)
iV8ValueReference - the V8 value referencepublic V8ValueLong longObjectValueOf(V8ValueLongObject v8ValueLongObject) throws JavetException
v8ValueLongObject - the V8 value long objectJavetException - if a V8 error occurs@CheckReturnValue public V8ValueArray mapAsArray(IV8ValueMap iV8ValueMap) throws JavetException
iV8ValueMap - the V8 value mapJavetException - if a V8 error occurspublic void mapClear(IV8ValueMap iV8ValueMap)
iV8ValueMap - the V8 value mappublic boolean mapDelete(IV8ValueMap iV8ValueMap, V8Value key) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T mapGet(IV8ValueMap iV8ValueMap, V8Value key) throws JavetException
T - the type of V8 valueiV8ValueMap - the V8 value mapkey - the keyJavetException - if a V8 error occurspublic java.lang.Boolean mapGetBoolean(IV8ValueMap iV8ValueMap, V8Value key) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyJavetException - if a V8 error occurspublic java.lang.Double mapGetDouble(IV8ValueMap iV8ValueMap, V8Value key) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyJavetException - if a V8 error occurspublic java.lang.Integer mapGetInteger(IV8ValueMap iV8ValueMap, V8Value key) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyJavetException - if a V8 error occurspublic java.lang.Long mapGetLong(IV8ValueMap iV8ValueMap, V8Value key) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyJavetException - if a V8 error occurspublic int mapGetSize(IV8ValueMap iV8ValueMap) throws JavetException
iV8ValueMap - the V8 value mapJavetException - if a V8 error occurspublic java.lang.String mapGetString(IV8ValueMap iV8ValueMap, V8Value key) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyJavetException - if a V8 error occurspublic boolean mapHas(IV8ValueMap iV8ValueMap, V8Value value) throws JavetException
iV8ValueMap - the V8 value mapvalue - the value to checkJavetException - if a V8 error occurspublic boolean mapSet(IV8ValueMap iV8ValueMap, V8Value... v8Values) throws JavetException
iV8ValueMap - the V8 value mapv8Values - the key-value pairsJavetException - if a V8 error occurspublic boolean mapSetBoolean(IV8ValueMap iV8ValueMap, V8Value key, boolean value) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyvalue - the boolean valueJavetException - if a V8 error occurspublic boolean mapSetDouble(IV8ValueMap iV8ValueMap, V8Value key, double value) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyvalue - the double valueJavetException - if a V8 error occurspublic boolean mapSetInteger(IV8ValueMap iV8ValueMap, V8Value key, int value) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyvalue - the integer valueJavetException - if a V8 error occurspublic boolean mapSetLong(IV8ValueMap iV8ValueMap, V8Value key, long value) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyvalue - the long valueJavetException - if a V8 error occurspublic boolean mapSetNull(IV8ValueMap iV8ValueMap, V8Value key) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyJavetException - if a V8 error occurspublic boolean mapSetString(IV8ValueMap iV8ValueMap, V8Value key, java.lang.String value) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyvalue - the string valueJavetException - if a V8 error occurspublic boolean mapSetUndefined(IV8ValueMap iV8ValueMap, V8Value key) throws JavetException
iV8ValueMap - the V8 value mapkey - the keyJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T moduleEvaluate(IV8Module iV8Module, boolean resultRequired) throws JavetException
T - the type of return valueiV8Module - the V8 moduleresultRequired - whether a result is requiredJavetException - if a V8 error occurspublic byte[] moduleGetCachedData(IV8Module iV8Module) throws JavetException
iV8Module - the V8 moduleJavetException - if a V8 error occurs@CheckReturnValue public V8ValueError moduleGetException(IV8Module iV8Module) throws JavetException
iV8Module - the V8 moduleJavetException - if a V8 error occurspublic int moduleGetIdentityHash(IV8Module iV8Module) throws JavetException
iV8Module - the V8 moduleJavetException - if a V8 error occurs@CheckReturnValue public V8Value moduleGetNamespace(IV8Module iV8Module) throws JavetException
iV8Module - the V8 moduleJavetException - if a V8 error occurspublic java.lang.String moduleGetResourceName(IV8Module iV8Module) throws JavetException
iV8Module - the V8 moduleJavetException - if a V8 error occurspublic int moduleGetScriptId(IV8Module iV8Module) throws JavetException
iV8Module - the V8 moduleJavetException - if a V8 error occurspublic int moduleGetStatus(IV8Module iV8Module) throws JavetException
iV8Module - the V8 moduleJavetException - if a V8 error occurspublic boolean moduleInstantiate(IV8Module iV8Module) throws JavetException
iV8Module - the V8 moduleJavetException - if a V8 error occurspublic boolean moduleIsSourceTextModule(IV8Module iV8Module)
iV8Module - the V8 modulepublic boolean moduleIsSyntheticModule(IV8Module iV8Module)
iV8Module - the V8 modulepublic boolean objectDelete(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurspublic boolean objectDeletePrivateProperty(IV8ValueObject iV8ValueObject, java.lang.String propertyName) throws JavetException
iV8ValueObject - the V8 value objectpropertyName - the private property nameJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T objectGet(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
T - the type of V8 valueiV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurspublic java.lang.Boolean objectGetBoolean(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurspublic java.lang.Double objectGetDouble(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurspublic int objectGetIdentityHash(IV8ValueReference iV8ValueReference) throws JavetException
iV8ValueReference - the V8 value referenceJavetException - if a V8 error occurspublic java.lang.Integer objectGetInteger(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurspublic java.lang.Long objectGetLong(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurs@CheckReturnValue public IV8ValueArray objectGetOwnPropertyNames(IV8ValueObject iV8ValueObject) throws JavetException
iV8ValueObject - the V8 value objectJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T objectGetPrivateProperty(IV8ValueObject iV8ValueObject, java.lang.String propertyName) throws JavetException
T - the type of V8 valueiV8ValueObject - the V8 value objectpropertyName - the private property nameJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T objectGetProperty(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
T - the type of V8 valueiV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurs@CheckReturnValue public IV8ValueArray objectGetPropertyNames(IV8ValueObject iV8ValueObject) throws JavetException
iV8ValueObject - the V8 value objectJavetException - if a V8 error occurs@CheckReturnValue public <T extends IV8ValueObject> T objectGetPrototype(IV8ValueObject iV8ValueObject) throws JavetException
T - the type of V8 value objectiV8ValueObject - the V8 value objectJavetException - if a V8 error occurspublic java.lang.String objectGetString(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurspublic boolean objectHas(IV8ValueObject iV8ValueObject, V8Value value) throws JavetException
iV8ValueObject - the V8 value objectvalue - the value to checkJavetException - if a V8 error occurspublic boolean objectHasOwnProperty(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurspublic boolean objectHasPrivateProperty(IV8ValueObject iV8ValueObject, java.lang.String propertyName) throws JavetException
iV8ValueObject - the V8 value objectpropertyName - the private property nameJavetException - if a V8 error occurs@CheckReturnValue public <T extends V8Value> T objectInvoke(IV8ValueObject iV8ValueObject, java.lang.String functionName, boolean returnResult, V8Value... v8Values) throws JavetException
T - the type of return valueiV8ValueObject - the V8 value objectfunctionName - the function namereturnResult - whether to return the resultv8Values - the argumentsJavetException - if a V8 error occurspublic boolean objectIsFrozen(IV8ValueObject iV8ValueObject)
iV8ValueObject - the V8 value objectpublic boolean objectIsSealed(IV8ValueObject iV8ValueObject)
iV8ValueObject - the V8 value objectpublic boolean objectSet(IV8ValueObject iV8ValueObject, V8Value... v8Values) throws JavetException
iV8ValueObject - the V8 value objectv8Values - the key-value pairsJavetException - if a V8 error occurspublic boolean objectSetAccessor(IV8ValueObject iV8ValueObject, V8Value propertyName, JavetCallbackContext javetCallbackContextGetter, JavetCallbackContext javetCallbackContextSetter) throws JavetException
iV8ValueObject - the V8 value objectpropertyName - the property namejavetCallbackContextGetter - the getter callback contextjavetCallbackContextSetter - the setter callback contextJavetException - if a V8 error occurspublic boolean objectSetBoolean(IV8ValueObject iV8ValueObject, V8Value key, boolean value) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyvalue - the boolean valueJavetException - if a V8 error occurspublic boolean objectSetDouble(IV8ValueObject iV8ValueObject, V8Value key, double value) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyvalue - the double valueJavetException - if a V8 error occurspublic boolean objectSetInteger(IV8ValueObject iV8ValueObject, V8Value key, int value) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyvalue - the integer valueJavetException - if a V8 error occurspublic boolean objectSetLong(IV8ValueObject iV8ValueObject, V8Value key, long value) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyvalue - the long valueJavetException - if a V8 error occurspublic boolean objectSetNull(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurspublic boolean objectSetPrivateProperty(IV8ValueObject iV8ValueObject, java.lang.String propertyName, V8Value propertyValue) throws JavetException
iV8ValueObject - the V8 value objectpropertyName - the private property namepropertyValue - the property valueJavetException - if a V8 error occurspublic boolean objectSetProperty(IV8ValueObject iV8ValueObject, V8Value key, V8Value value) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyvalue - the valueJavetException - if a V8 error occurspublic boolean objectSetPrototype(IV8ValueObject iV8ValueObject, IV8ValueObject iV8ValueObjectPrototype) throws JavetException
iV8ValueObject - the V8 value objectiV8ValueObjectPrototype - the prototype V8 value objectJavetException - if a V8 error occurspublic boolean objectSetString(IV8ValueObject iV8ValueObject, V8Value key, java.lang.String value) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyvalue - the string valueJavetException - if a V8 error occurspublic boolean objectSetUndefined(IV8ValueObject iV8ValueObject, V8Value key) throws JavetException
iV8ValueObject - the V8 value objectkey - the keyJavetException - if a V8 error occurspublic java.lang.String objectToProtoString(IV8ValueReference iV8ValueReference) throws JavetException
iV8ValueReference - the V8 value referenceJavetException - if a V8 error occurspublic <T extends V8ValuePromise> T promiseCatch(IV8ValuePromise iV8ValuePromise, IV8ValueFunction functionHandle) throws JavetException
T - the type of V8 value promiseiV8ValuePromise - the V8 value promisefunctionHandle - the catch function handleJavetException - if a V8 error occurspublic V8ValuePromise promiseGetPromise(IV8ValuePromise iV8ValuePromise) throws JavetException
iV8ValuePromise - the V8 value promiseJavetException - if a V8 error occurspublic <T extends V8Value> T promiseGetResult(IV8ValuePromise iV8ValuePromise) throws JavetException
T - the type of V8 valueiV8ValuePromise - the V8 value promiseJavetException - if a V8 error occurspublic int promiseGetState(IV8ValuePromise iV8ValuePromise)
iV8ValuePromise - the V8 value promisepublic boolean promiseHasHandler(IV8ValuePromise iV8ValuePromise)
iV8ValuePromise - the V8 value promisepublic void promiseMarkAsHandled(IV8ValuePromise iV8ValuePromise)
iV8ValuePromise - the V8 value promisepublic boolean promiseReject(V8ValuePromise v8ValuePromise, V8Value v8Value)
v8ValuePromise - the V8 value promisev8Value - the rejection valuepublic boolean promiseResolve(V8ValuePromise v8ValuePromise, V8Value v8Value)
v8ValuePromise - the V8 value promisev8Value - the resolution value@CheckReturnValue public <T extends V8ValuePromise> T promiseThen(IV8ValuePromise iV8ValuePromise, IV8ValueFunction functionFulfilledHandle, IV8ValueFunction functionRejectedHandle) throws JavetException
T - the type of V8 value promiseiV8ValuePromise - the V8 value promisefunctionFulfilledHandle - the fulfilled function handlefunctionRejectedHandle - the rejected function handleJavetException - if a V8 error occurs@CheckReturnValue public V8ValueObject proxyGetHandler(IV8ValueProxy iV8ValueProxy) throws JavetException
iV8ValueProxy - the V8 value proxyJavetException - if a V8 error occurs@CheckReturnValue public V8ValueObject proxyGetTarget(IV8ValueProxy iV8ValueProxy) throws JavetException
iV8ValueProxy - the V8 value proxyJavetException - if a V8 error occurspublic boolean proxyIsRevoked(IV8ValueProxy iV8ValueProxy) throws JavetException
iV8ValueProxy - the V8 value proxyJavetException - if a V8 error occurspublic void proxyRevoke(IV8ValueProxy iV8ValueProxy) throws JavetException
iV8ValueProxy - the V8 value proxyJavetException - if a V8 error occurspublic void removeReference(IV8ValueReference iV8ValueReference) throws JavetException
iV8ValueReference - the V8 value referenceJavetException - if a V8 error occurspublic boolean sameValue(IV8ValueObject iV8ValueObject1, IV8ValueObject iV8ValueObject2)
iV8ValueObject1 - the first V8 value objectiV8ValueObject2 - the second V8 value objectpublic byte[] scriptGetCachedData(IV8Script iV8Script) throws JavetException
iV8Script - the V8 scriptJavetException - if a V8 error occurspublic java.lang.String scriptGetResourceName(IV8Script iV8Script) throws JavetException
iV8Script - the V8 scriptJavetException - if a V8 error occurspublic <T extends V8Value> T scriptRun(IV8Script iV8Script, boolean resultRequired) throws JavetException
T - the type of return valueiV8Script - the V8 scriptresultRequired - whether a result is requiredJavetException - if a V8 error occurspublic void setAdd(IV8ValueSet iV8ValueSet, V8Value key) throws JavetException
iV8ValueSet - the V8 value setkey - the value to addJavetException - if a V8 error occurs@CheckReturnValue public V8ValueArray setAsArray(IV8ValueSet iV8ValueSet) throws JavetException
iV8ValueSet - the V8 value setJavetException - if a V8 error occurspublic void setClear(IV8ValueSet iV8ValueSet)
iV8ValueSet - the V8 value setpublic boolean setDelete(IV8ValueSet iV8ValueSet, V8Value key) throws JavetException
iV8ValueSet - the V8 value setkey - the value to deleteJavetException - if a V8 error occurspublic int setGetSize(IV8ValueSet iV8ValueSet) throws JavetException
iV8ValueSet - the V8 value setJavetException - if a V8 error occurspublic boolean setHas(IV8ValueSet iV8ValueSet, V8Value key) throws JavetException
iV8ValueSet - the V8 value setkey - the value to checkJavetException - if a V8 error occurspublic void setWeak(IV8ValueReference iV8ValueReference)
iV8ValueReference - the V8 value referencepublic boolean strictEquals(IV8ValueObject iV8ValueObject1, IV8ValueObject iV8ValueObject2)
iV8ValueObject1 - the first V8 value objectiV8ValueObject2 - the second V8 value objectpublic V8ValueString stringObjectValueOf(V8ValueStringObject v8ValueStringObject)
v8ValueStringObject - the V8 value string objectpublic java.lang.String symbolDescription(V8ValueSymbol v8ValueSymbol)
v8ValueSymbol - the V8 value symbolpublic V8ValueSymbol symbolObjectValueOf(V8ValueSymbolObject v8ValueSymbolObject)
v8ValueSymbolObject - the V8 value symbol objectpublic V8ValueSymbolObject symbolToObject(V8ValueSymbol v8ValueSymbol)
v8ValueSymbol - the V8 value symbolpublic java.lang.String toString(IV8ValueReference iV8ValueReference) throws JavetException
iV8ValueReference - the V8 value referenceJavetException - if a V8 error occurs