|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 | |
---|---|
boolean |
equals(java.lang.Object other)
|
(package private) JavaScriptObject |
getUnwrapper()
Internal. |
int |
hashCode()
|
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, finalize, getClass, 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 boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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
JavaScriptObject getUnwrapper()
JSONValue
getUnwrapper
in class JSONValue
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |