java.lang.Object | ||
↳ | com.google.gwt.json.client.JSONValue | |
↳ | com.google.gwt.json.client.JSONArray |
Represents an array of JSONValue
objects.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty JSONArray.
| |||||||||||
Creates a new JSONArray from the supplied JavaScriptObject representing a
JavaScript array.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the value at the specified index position.
| |||||||||||
Returns the underlying JavaScript array that this object wraps.
| |||||||||||
Returns
this , as this is a JSONArray. | |||||||||||
Sets the specified index to the given value.
| |||||||||||
Returns the number of elements in this array.
| |||||||||||
Create the JSON encoded string representation of this JSONArray instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.json.client.JSONValue
| |||||||||||
From class
java.lang.Object
|
Creates an empty JSONArray.
Creates a new JSONArray from the supplied JavaScriptObject representing a JavaScript array.
arr | a JavaScript array |
---|
Returns true
if other
is a JSONArray
wrapping the same underlying object.
Returns the value at the specified index position.
index | the index of the array item to retrieve |
---|
null
if this index is
empty
Returns the underlying JavaScript array that this object wraps.
Returns this
, as this is a JSONArray.
null
otherwise.
Sets the specified index to the given value.
index | the index to set |
---|---|
value | the value to set |
null
if this
index was empty
Returns the number of elements in this array.
Create the JSON encoded string representation of this JSONArray instance. This method may take a long time to execute if the underlying array is large.