java.lang.Object | ||
↳ | com.google.gwt.core.client.JavaScriptObject | |
↳ | com.google.gwt.core.client.JsArrayMixed |
A simple wrapper around an heterogeneous native array of values.
This class may not be directly instantiated, and can only be returned from a
native method. For example,
native JsArrayMixed getNativeArray() /*-{
return [
{ x: 0, y: 1},
"apple",
12345,
];
}-* /;
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the boolean at a given index.
| |||||||||||
Gets the double at a given index.
| |||||||||||
Gets the
JavaScriptObject at a given index. | |||||||||||
Gets the String at a given index.
| |||||||||||
Convert each element of the array to a String and join them with a comma
separator.
| |||||||||||
Convert each element of the array to a String and join them with a comma
separator.
| |||||||||||
Gets the length of the array.
| |||||||||||
Pushes the given String onto the end of the array.
| |||||||||||
Pushes the given
JavaScriptObject onto the end of the array. | |||||||||||
Pushes the given boolean onto the end of the array.
| |||||||||||
Pushes the given double onto the end of the array.
| |||||||||||
Sets the boolean value at a given index.
| |||||||||||
Sets the object value at a given index.
| |||||||||||
Sets the String value at a given index.
| |||||||||||
Sets the double value at a given index.
| |||||||||||
Reset the length of the array.
| |||||||||||
Shifts the first value off the array.
| |||||||||||
Shifts the first value off the array.
| |||||||||||
Shifts the first value off the array.
| |||||||||||
Shifts the first value off the array.
| |||||||||||
Shifts a double onto the beginning of the array.
| |||||||||||
Shifts a String onto the beginning of the array.
| |||||||||||
Shifts a boolean onto the beginning of the array.
| |||||||||||
Shifts a
JavaScriptObject onto the beginning of the array. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
Gets the boolean at a given index.
index | the index to be retrieved |
---|
null
if none exists
Gets the double at a given index.
index | the index to be retrieved |
---|
null
if none exists
Gets the JavaScriptObject
at a given index.
index | the index to be retrieved |
---|
JavaScriptObject
at the given index, or
null
if none exists
Gets the String at a given index.
index | the index to be retrieved |
---|
null
if none exists
Convert each element of the array to a String and join them with a comma separator. The value returned from this method may vary between browsers based on how JavaScript values are converted into strings.
Convert each element of the array to a String and join them with a comma separator. The value returned from this method may vary between browsers based on how JavaScript values are converted into strings.
Gets the length of the array.
Pushes the given JavaScriptObject
onto the end of the array.
Pushes the given boolean onto the end of the array.
Pushes the given double onto the end of the array.
Sets the boolean value at a given index. If the index is out of bounds, the value will still be set. The array's length will be updated to encompass the bounds implied by the added value.
index | the index to be set |
---|---|
value | the boolean to be stored |
Sets the object value at a given index. If the index is out of bounds, the value will still be set. The array's length will be updated to encompass the bounds implied by the added object.
index | the index to be set |
---|---|
value | the JavaScriptObject to be stored
|
Sets the String value at a given index. If the index is out of bounds, the value will still be set. The array's length will be updated to encompass the bounds implied by the added String.
index | the index to be set |
---|---|
value | the String to be stored |
Sets the double value at a given index. If the index is out of bounds, the value will still be set. The array's length will be updated to encompass the bounds implied by the added value.
index | the index to be set |
---|---|
value | the double to be stored |
Reset the length of the array.
newLength | the new length of the array |
---|
Shifts the first value off the array.
Shifts the first value off the array.
Shifts the first value off the array.
JavaScriptObject
Shifts a double onto the beginning of the array.
value | the value to store |
---|
Shifts a String onto the beginning of the array.
value | the value to store |
---|
Shifts a boolean onto the beginning of the array.
value | the value to the stored |
---|
Shifts a JavaScriptObject
onto the beginning of the array.
value | the value to store |
---|