
public class JsJsonValue extends JavaScriptObject implements JsonValue
| Modifier | Constructor and Description |
|---|---|
protected |
JsJsonValue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean()
Coerces underlying value to boolean according to the rules of Javascript coercion.
|
double |
asNumber()
Coerces the underlying value to a number according to the rules of Javascript coercion.
|
String |
asString()
Coerces the underlying value to a String according to the rules of JavaScript coercion.
|
JsonType |
getType()
Returns an enumeration representing the fundamental JSON type.
|
boolean |
jsEquals(JsonValue value)
Equivalent of Javascript '==' operator comparison between two values.
|
String |
toJson()
Returns a serialized JSON string representing this value.
|
Object |
toNative()
If used in a GWT context (dev or prod mode), converts the object to a native JavaScriptObject
suitable for passing to JSNI methods.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringpublic final boolean asBoolean()
JsonValuepublic final double asNumber()
JsonValuepublic final String asString()
JsonValuepublic final JsonType getType()
JsonValuepublic final boolean jsEquals(JsonValue value)
JsonValuepublic final String toJson()
JsonValueCopyright © 2016. All rights reserved.