Package com.google.gwt.json.client
Class JSONString
- java.lang.Object
-
- com.google.gwt.json.client.JSONValue
-
- com.google.gwt.json.client.JSONString
-
public class JSONString extends JSONValue
Represents a JSON string.
-
-
Constructor Summary
Constructors Constructor Description JSONString(java.lang.String value)Creates a new JSONString from the supplied String.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)(package private) JavaScriptObjectgetUnwrapper()Internal.inthashCode()JSONStringisString()Returnsthis, as this is a JSONString.java.lang.StringstringValue()Returns the raw Java string value of this item.java.lang.StringtoString()Returns the JSON formatted value of this string, quoted for evaluating in a JavaScript interpreter.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isString
public JSONString isString()
Returnsthis, as this is a JSONString.
-
stringValue
public java.lang.String stringValue()
Returns the raw Java string value of this item.
-
toString
public java.lang.String 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
-
-