| |
|
| java.lang.Object com.google.gwt.json.client.JSONValue com.google.gwt.json.client.JSONArray
Constructor Summary | |
public | JSONArray() Creates an empty JSONArray. | public | JSONArray(JavaScriptObject arr) Creates a new JSONArray from the supplied JavaScriptObject representing a
JavaScript array. |
Method Summary | |
public JSONValue | get(int index) Returns the value at the specified index position. | public JSONArray | isArray() Returns this , as this is a JSONArray. | public JSONValue | set(int index, JSONValue jsonValue) Sets the specified index to the given value. | native public int | size() Returns the number of elements in this array. | public String | toString() Create the JSON encoded string representation of this JSONArray instance. |
JSONArray | public JSONArray()(Code) | | Creates an empty JSONArray.
|
JSONArray | public JSONArray(JavaScriptObject arr)(Code) | | Creates a new JSONArray from the supplied JavaScriptObject representing a
JavaScript array.
Parameters: arr - a JavaScript array |
get | public JSONValue get(int index) throws JSONException(Code) | | Returns the value at the specified index position.
Parameters: index - the index of the array item to retrieve the value at this index, or null if this index isempty |
isArray | public JSONArray isArray()(Code) | | Returns this , as this is a JSONArray.
|
set | public JSONValue set(int index, JSONValue jsonValue)(Code) | | Sets the specified index to the given value.
Parameters: index - the index to set Parameters: jsonValue - the value to set the previous value at this index, or null if thisindex was empty |
size | native public int size()(Code) | | Returns the number of elements in this array.
size of this array |
toString | public String toString() throws JSONException(Code) | | 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.
|
|
|
|