We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
elemental.json.impl.
Class JreJsonValue
- java.lang.Object
-
- elemental.json.impl.JreJsonValue
-
All Implemented Interfaces:
Direct Known Subclasses:
JreJsonArray, JreJsonBoolean, JreJsonNull, JreJsonNumber, JreJsonObject, JreJsonString
public abstract class JreJsonValue extends Object implements JsonValue
JRE (non-Client) implementation of JreJsonValue.
See Also:
-
-
Constructor Summary
Constructors Constructor and Description JreJsonValue()
-
Method Summary
All Methods Modifier and Type Method and Description abstract Object
getObject()
protected static <T extends JsonValue>
TparseJson(ObjectInputStream stream)
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.
abstract void
traverse(elemental.json.impl.JsonVisitor visitor, elemental.json.impl.JsonContext ctx)
-
-
-
Method Detail
-
getObject
public abstract Object getObject()
-
traverse
public abstract void traverse(elemental.json.impl.JsonVisitor visitor, elemental.json.impl.JsonContext ctx)
-
toNative
public Object toNative()
Description copied from interface:
JsonValue
If used in a GWT context (dev or prod mode), converts the object to a native JavaScriptObject suitable for passing to JSNI methods. Otherwise, returns the current object in other contexts, such as server-side use.
-
parseJson
protected static <T extends JsonValue> T parseJson(ObjectInputStream stream) throws ClassNotFoundException, IOException
Throws:
-
-