public class V8Array extends V8Object
| Modifier | Constructor and Description |
|---|---|
protected |
V8Array() |
|
V8Array(V8 v8)
Creates a new V8Array and associates it with the given runtime.
|
| Modifier and Type | Method and Description |
|---|---|
protected V8Value |
createTwin() |
Object |
get(int index)
Gets the value at a given index as a Java Object.
|
V8Array |
getArray(int index)
Returns the V8Array value associated at this index.
|
boolean |
getBoolean(int index)
Returns the boolean value associated at this index.
|
boolean[] |
getBooleans(int index,
int length)
Returns the booleans contained in a subset of a V8Array.
|
int |
getBooleans(int index,
int length,
boolean[] resultArray)
Gets the booleans contained in a subset of a V8Array.
|
double |
getDouble(int index)
Returns the double value associated at this index.
|
double[] |
getDoubles(int index,
int length)
Returns the doubles contained in a subset of a V8Array.
|
int |
getDoubles(int index,
int length,
double[] resultArray)
Gets the doubles contained in a subset of a V8Array.
|
int |
getInteger(int index)
Returns the integer value associated at this index.
|
int[] |
getIntegers(int index,
int length)
Returns the integers contained in a subset of a V8Array.
|
int |
getIntegers(int index,
int length,
int[] resultArray)
Gets the integers contained in a subset of a V8Array.
|
V8Object |
getObject(int index)
Returns the V8Object value associated at this index.
|
String |
getString(int index)
Returns the String value associated at this index.
|
String[] |
getStrings(int index,
int length)
Returns the Strings contained in a subset of a V8Array.
|
int |
getStrings(int index,
int length,
String[] resultArray)
Gets the Strings contained in a subset of a V8Array.
|
int |
getType()
Gets the type of the array.
|
int |
getType(int index)
Returns the type of element at this given index.
|
int |
getType(int index,
int length)
Gets the type of a subset of the array.
|
protected long |
initialize(long runtimePtr) |
int |
length()
Returns the length of this array.
|
V8Array |
push(boolean value)
Pushes a boolean value to the next available spot in the Array.
|
V8Array |
push(double value)
Pushes a double value to the next available spot in the Array.
|
V8Array |
push(int value)
Pushes an integer value to the next available spot in the Array.
|
V8Array |
push(String value)
Pushes a String value to the next available spot in the Array.
|
V8Array |
push(V8Value value)
Pushes a V8Value to the next available spot in the Array.
|
V8Array |
pushNull()
Pushes null to the next available spot in the Array.
|
V8Array |
pushUndefined()
Pushes undefined to the next available spot in the Array.
|
V8Array |
twin()
Creates a new Java object pointing at the same V8 Value
as this.
|
add, add, add, add, add, addNull, addUndefined, contains, executeArrayFunction, executeBooleanFunction, executeDoubleFunction, executeFunction, executeIntegerFunction, executeObjectFunction, executeStringFunction, executeVoidFunction, get, getArray, getBoolean, getDouble, getInteger, getKeys, getObject, getString, getType, registerJavaMethod, registerJavaMethod, registerJavaMethod, registerJavaMethod, setPrototype, toStringcheckReleaesd, equals, getHandle, getRuntime, getRutime, hashCode, isReleased, isUndefined, jsEquals, release, strictEqualsprotected V8Array()
public V8Array(V8 v8)
v8 - The runtime on which to associate the V8Array.protected V8Value createTwin()
createTwin in class V8Objectpublic V8Array twin()
V8Valueprotected long initialize(long runtimePtr)
initialize in class V8Valuepublic int length()
public int getType(int index)
index - The index at which to lookup the type of.public int getType()
public int getType(int index,
int length)
index - The start index.length - The length.public int getInteger(int index)
index - The index whose value to return.public boolean getBoolean(int index)
index - The index whose value to return.public double getDouble(int index)
index - The index whose value to return.public String getString(int index)
index - The index whose value to return.public int[] getIntegers(int index,
int length)
index - The starting index.length - The length.public int getIntegers(int index,
int length,
int[] resultArray)
index - The starting index.length - The length.resultArray - The array to put the results in.public double[] getDoubles(int index,
int length)
index - The starting index.length - The length.public int getDoubles(int index,
int length,
double[] resultArray)
index - The starting index.length - The length.resultArray - The array to put the results in.public boolean[] getBooleans(int index,
int length)
index - The starting index.length - The length.public int getBooleans(int index,
int length,
boolean[] resultArray)
index - The starting index.length - The length.resultArray - The array to put the results in.public String[] getStrings(int index, int length)
index - The starting index.length - The length.public int getStrings(int index,
int length,
String[] resultArray)
index - The starting index.length - The length.resultArray - The array to put the results in.public Object get(int index)
index - The index to get the value at.public V8Array getArray(int index)
index - The index whose value to return.public V8Object getObject(int index)
index - The index whose value to return.public V8Array push(int value)
value - The value to push to the array.public V8Array push(boolean value)
value - The value to push to the array.public V8Array push(double value)
value - The value to push to the array.public V8Array push(String value)
value - The value to push to the array.public V8Array push(V8Value value)
value - The value to push to the array.public V8Array pushNull()
value - The value to push to the array.public V8Array pushUndefined()
value - The value to push to the array.Copyright © 2015. All rights reserved.