public class JSONString extends JSONValue
| Constructor and Description |
|---|
JSONString(java.lang.String value)
Creates a new JSONString from the supplied String.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public JSONString(java.lang.String value)
value - a String valuejava.lang.NullPointerException - if value is nullpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic JSONString isString()
this, as this is a JSONString.public java.lang.String stringValue()
public java.lang.String toString()
JavaScriptObject getUnwrapper()
JSONValuegetUnwrapper in class JSONValue