Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`JSONString(java.lang.String value)` Creates a new JSONString from the supplied String.

Method Summary
`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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### JSONString

    public JSONString(java.lang.String value)

  Creates a new JSONString from the supplied String.

  Parameters:
    `value` - a String value
  Throws:
    `java.lang.NullPointerException` - if `value` is `null`

Method Detail

### isString

    public JSONString isString()

  Returns `this`, as this is a JSONString.

  Overrides:
    `isString` in class `JSONValue`
  Returns:
    a reference to a JSONString if this JSONValue is a JSONString or `null` otherwise.

### 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.

  Specified by:
    `toString` in class `JSONValue`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD