|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplayn.flash.json.impl.JreJsonValue
playn.flash.json.impl.JreJsonObject
public class JreJsonObject
Server-side implementation of JsonObject.
| Constructor Summary | |
|---|---|
JreJsonObject(JsonFactory factory)
|
|
| Method Summary | ||
|---|---|---|
|
get(String key)
|
|
Object |
getObject()
|
|
JsonType |
getType()
Returns an enumeration representing the fundamental JSON type. |
|
boolean |
hasKey(String key)
|
|
boolean |
jsEquals(JsonValue value)
Equivalent of Javascript '==' operator comparison between two values. |
|
String[] |
keys()
|
|
void |
put(String key,
boolean bool)
|
|
void |
put(String key,
double value)
|
|
void |
put(String key,
JsonValue value)
|
|
void |
put(String key,
String value)
|
|
void |
remove(String key)
|
|
String |
toJson()
Returns a serialized JSON string representing this value. |
|
String |
toString()
|
|
void |
traverse(playn.flash.json.impl.JsonVisitor visitor,
playn.flash.json.impl.JsonContext ctx)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JreJsonObject(JsonFactory factory)
| Method Detail |
|---|
public <T extends JsonValue> T get(String key)
get in interface JsonObjectpublic Object getObject()
getObject in class JreJsonValuepublic JsonType getType()
JsonValue
getType in interface JsonValuepublic boolean hasKey(String key)
hasKey in interface JsonObjectpublic String[] keys()
keys in interface JsonObject
public void put(String key,
JsonValue value)
put in interface JsonObject
public void put(String key,
String value)
put in interface JsonObject
public void put(String key,
double value)
put in interface JsonObject
public void put(String key,
boolean bool)
put in interface JsonObjectpublic void remove(String key)
remove in interface JsonObjectpublic boolean jsEquals(JsonValue value)
JsonValue
jsEquals in interface JsonValuepublic String toJson()
JsonValue
toJson in interface JsonValuepublic String toString()
toString in class Object
public void traverse(playn.flash.json.impl.JsonVisitor visitor,
playn.flash.json.impl.JsonContext ctx)
traverse in class JreJsonValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||