|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.json.client.JSONValue
com.google.gwt.json.client.JSONString
public class JSONString
Represents a JSON string.
Constructor Summary | |
---|---|
JSONString(java.lang.String value)
Creates a new JSONString from the supplied String. |
Method Summary | |
---|---|
JSONString |
isString()
Returns this , as this is a JSONString. |
java.lang.String |
stringValue()
Returns the raw Java string value of this item. |
java.lang.String |
toString()
Returns the JSON formatted value of this string, quoted for evaluating in a JavaScript interpreter. |
Methods inherited from class com.google.gwt.json.client.JSONValue |
---|
isArray, isBoolean, isNull, isNumber, isObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JSONString(java.lang.String value)
value
- a String value
java.lang.NullPointerException
- if value
is null
Method Detail |
---|
public JSONString isString()
this
, as this is a JSONString.
isString
in class JSONValue
null
otherwise.public java.lang.String stringValue()
public java.lang.String toString()
toString
in class JSONValue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |