public abstract class

JSONValue

extends Object
java.lang.Object
   ↳ com.google.gwt.json.client.JSONValue
Known Direct Subclasses

Class Overview

The superclass of all JSON value types.

Summary

Public Methods
JSONArray isArray()
Returns a non-null reference if this JSONValue is really a JSONArray.
JSONBoolean isBoolean()
Returns a non-null reference if this JSONValue is really a JSONBoolean.
JSONNull isNull()
Returns a non-null reference if this JSONValue is really a JSONNull.
JSONNumber isNumber()
Returns a non-null reference if this JSONValue is really a JSONNumber.
JSONObject isObject()
Returns non-null if this JSONValue is really a JSONObject.
JSONString isString()
Returns a non-null reference if this JSONValue is really a JSONString.
abstract String toString()
Returns a JSON-encoded string for this entity.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public JSONArray isArray ()

Returns a non-null reference if this JSONValue is really a JSONArray.

Returns
  • a reference to a JSONArray if this JSONValue is a JSONArray or null otherwise.

public JSONBoolean isBoolean ()

Returns a non-null reference if this JSONValue is really a JSONBoolean.

Returns
  • a reference to a JSONBoolean if this JSONValue is a JSONBoolean or null otherwise.

public JSONNull isNull ()

Returns a non-null reference if this JSONValue is really a JSONNull.

Returns
  • a reference to a JSONNull if this JSONValue is a JSONNull or null otherwise.

public JSONNumber isNumber ()

Returns a non-null reference if this JSONValue is really a JSONNumber.

Returns
  • a reference to a JSONNumber if this JSONValue is a JSONNumber or null otherwise.

public JSONObject isObject ()

Returns non-null if this JSONValue is really a JSONObject.

Returns
  • a reference to a JSONObject if this JSONValue is a JSONObject or null otherwise.

public JSONString isString ()

Returns a non-null reference if this JSONValue is really a JSONString.

Returns
  • a reference to a JSONString if this JSONValue is a JSONString or null otherwise.

public abstract String toString ()

Returns a JSON-encoded string for this entity. Use this method to create JSON strings that can be sent from the client to a server.