| Package | Description |
|---|---|
| com.eclipsesource.v8 | |
| com.eclipsesource.v8.utils |
| Modifier and Type | Method and Description |
|---|---|
V8Array |
V8Object.executeArrayFunction(String name,
V8Array parameters)
Invoke a JavaScript function and return the result as a V8Array.
|
V8Array |
V8.executeArrayScript(String script)
Executes a JS Script on this runtime and returns the result as a V8Array.
|
V8Array |
V8.executeArrayScript(String script,
String scriptName,
int lineNumber)
Executes a JS Script on this runtime and returns the result as a V8Array.
|
V8Array |
V8Array.getArray(int index)
Returns the V8Array value associated at this index.
|
V8Array |
V8Object.getArray(String key)
Returns the V8Array value associated with this key.
|
V8Array |
V8Array.push(boolean value)
Pushes a boolean value to the next available spot in the Array.
|
V8Array |
V8Array.push(double value)
Pushes a double value to the next available spot in the Array.
|
V8Array |
V8Array.push(int value)
Pushes an integer value to the next available spot in the Array.
|
V8Array |
V8Array.push(String value)
Pushes a String value to the next available spot in the Array.
|
V8Array |
V8Array.push(V8Value value)
Pushes a V8Value to the next available spot in the Array.
|
V8Array |
V8Array.pushNull()
Pushes null to the next available spot in the Array.
|
V8Array |
V8Array.pushUndefined()
Pushes undefined to the next available spot in the Array.
|
V8Array |
V8Array.twin() |
| Modifier and Type | Method and Description |
|---|---|
Object |
V8Function.call(V8Object receiver,
V8Array parameters)
Invoke the JavaScript function on the current runtime.
|
protected Object |
V8.callObjectJavaMethod(int methodID,
V8Object receiver,
V8Array parameters) |
protected void |
V8.callVoidJavaMethod(int methodID,
V8Object receiver,
V8Array parameters) |
V8Array |
V8Object.executeArrayFunction(String name,
V8Array parameters)
Invoke a JavaScript function and return the result as a V8Array.
|
boolean |
V8Object.executeBooleanFunction(String name,
V8Array parameters)
Invoke a JavaScript function and return the result as a boolean.
|
double |
V8Object.executeDoubleFunction(String name,
V8Array parameters)
Invoke a JavaScript function and return the result as a double.
|
Object |
V8Object.executeFunction(String name,
V8Array parameters)
Invoke a JavaScript function and return the result as a Java Object.
|
int |
V8Object.executeIntegerFunction(String name,
V8Array parameters)
Invoke a JavaScript function and return the result as a integer.
|
V8Object |
V8Object.executeObjectFunction(String name,
V8Array parameters)
Invoke a JavaScript function and return the result as a V8Object.
|
String |
V8Object.executeStringFunction(String name,
V8Array parameters)
Invoke a JavaScript function and return the result as a String.
|
void |
V8Object.executeVoidFunction(String name,
V8Array parameters)
Invokes a JavaScript function which does not return a result.
|
void |
JavaVoidCallback.invoke(V8Object receiver,
V8Array parameters)
Called when a JS Function invokes a the registered Java
method.
|
Object |
JavaCallback.invoke(V8Object receiver,
V8Array parameters)
Called when a JS Function invokes a the registered Java
method.
|
| Modifier and Type | Method and Description |
|---|---|
static V8Array |
V8ObjectUtils.toV8Array(V8 v8,
List<? extends Object> list)
Creates a V8Array from a java.util.List.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
V8ObjectUtils.getTypedArray(V8Array array,
int arrayType)
Creates a Java array from a V8Array.
|
static Object |
V8ObjectUtils.getTypedArray(V8Array array,
int arrayType,
Object result)
Populates a Java array from a V8Array.
|
static Object |
V8ObjectUtils.getValue(V8Array array,
int index)
Gets a Java Object representing the value at the given index in the V8Array.
|
static void |
V8ObjectUtils.pushValue(V8 v8,
V8Array array,
Object value)
Pushes a Java Object to a V8Array by first converting it to a V8Value if needed.
|
static List<? super Object> |
V8ObjectUtils.toList(V8Array array)
Creates a List
|
Copyright © 2015. All rights reserved.