Package | Description |
---|---|
org.eclipse.rap.json |
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArray.add(boolean value)
Adds the JSON representation of the specified
boolean value to the array. |
JsonArray |
JsonArray.add(double value)
Adds the JSON representation of the specified
double value to the array. |
JsonArray |
JsonArray.add(float value)
Adds the JSON representation of the specified
float value to the array. |
JsonArray |
JsonArray.add(int value)
Adds the JSON representation of the specified
int value to the array. |
JsonArray |
JsonArray.add(JsonValue value)
Adds the specified JSON value to the array.
|
JsonArray |
JsonArray.add(long value)
Adds the JSON representation of the specified
long value to the array. |
JsonArray |
JsonArray.add(java.lang.String value)
Adds the JSON representation of the specified string to the array.
|
JsonArray |
JsonArray.asArray() |
JsonArray |
JsonValue.asArray()
Returns this JSON value as
JsonArray , assuming that this value represents a JSON
array. |
static JsonArray |
JsonArray.readFrom(java.io.Reader reader)
Reads a JSON array from the given reader.
|
static JsonArray |
JsonArray.readFrom(java.lang.String string)
Reads a JSON array from the given string.
|
JsonArray |
JsonArray.set(int index,
boolean value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
boolean value. |
JsonArray |
JsonArray.set(int index,
double value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
double value. |
JsonArray |
JsonArray.set(int index,
float value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
float value. |
JsonArray |
JsonArray.set(int index,
int value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
int value. |
JsonArray |
JsonArray.set(int index,
JsonValue value)
Replaces the element at the specified position in this array with the specified JSON value.
|
JsonArray |
JsonArray.set(int index,
long value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
long value. |
JsonArray |
JsonArray.set(int index,
java.lang.String value)
Replaces the element at the specified position in this array with the JSON representation of
the specified string.
|
static JsonArray |
JsonArray.unmodifiableArray(JsonArray array)
Returns an unmodifiable wrapper for the specified JsonArray.
|
Modifier and Type | Method and Description |
---|---|
static JsonArray |
JsonArray.unmodifiableArray(JsonArray array)
Returns an unmodifiable wrapper for the specified JsonArray.
|
Constructor and Description |
---|
JsonArray(JsonArray array)
Creates a new JsonArray with the contents of the specified JSON array.
|
Copyright (c) EclipseSource and others 2002, 2016.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0