Package com.google.gwt.json.client
Class JSONString
java.lang.Object
com.google.gwt.json.client.JSONValue
com.google.gwt.json.client.JSONString
Represents a JSON string.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) JavaScriptObjectInternal.inthashCode()isString()Returnsthis, as this is a JSONString.Returns the raw Java string value of this item.toString()Returns the JSON formatted value of this string, quoted for evaluating in a JavaScript interpreter.
-
Constructor Details
-
JSONString
Creates a new JSONString from the supplied String.- Parameters:
value- a String value- Throws:
NullPointerException- ifvalueisnull
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
isString
Returnsthis, as this is a JSONString. -
stringValue
Returns the raw Java string value of this item. -
toString
Returns the JSON formatted value of this string, quoted for evaluating in a JavaScript interpreter. -
getUnwrapper
JavaScriptObject getUnwrapper()Description copied from class:JSONValueInternal. Returns a JS func that can unwrap this value. Used from native code.- Specified by:
getUnwrapperin classJSONValue
-