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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
(package private) JavaScriptObject
Internal.int
hashCode()
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
- ifvalue
isnull
-
-
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:JSONValue
Internal. Returns a JS func that can unwrap this value. Used from native code.- Specified by:
getUnwrapper
in classJSONValue
-