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, toString
public final boolean asBoolean()
JsonValue
public final double asNumber()
JsonValue
public final String asString()
JsonValue
public final JsonType getType()
JsonValue
public final boolean jsEquals(JsonValue value)
JsonValue
public final String toJson()
JsonValue
Copyright © 2018. All rights reserved.