playn.flash.json.impl
Class JreJsonString

java.lang.Object
  extended by playn.flash.json.impl.JreJsonValue
      extended by playn.flash.json.impl.JreJsonString
All Implemented Interfaces:
JsonString, JsonValue

public class JreJsonString
extends JreJsonValue
implements JsonString

Server-side implementation of JsonString.


Constructor Summary
JreJsonString(String string)
           
 
Method Summary
 Object getObject()
           
 String getString()
           
 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.
 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, toString, wait, wait, wait
 

Constructor Detail

JreJsonString

public JreJsonString(String string)
Method Detail

getObject

public Object getObject()
Specified by:
getObject in class JreJsonValue

getString

public String getString()
Specified by:
getString in interface JsonString

getType

public JsonType getType()
Description copied from interface: JsonValue
Returns an enumeration representing the fundamental JSON type.

Specified by:
getType in interface JsonValue

jsEquals

public boolean jsEquals(JsonValue value)
Description copied from interface: JsonValue
Equivalent of Javascript '==' operator comparison between two values.

Specified by:
jsEquals in interface JsonValue

traverse

public void traverse(playn.flash.json.impl.JsonVisitor visitor,
                     playn.flash.json.impl.JsonContext ctx)
Specified by:
traverse in class JreJsonValue

toJson

public String toJson()
              throws IllegalStateException
Description copied from interface: JsonValue
Returns a serialized JSON string representing this value.

Specified by:
toJson in interface JsonValue
Returns:
Throws:
IllegalStateException


Copyright © 2011. All Rights Reserved.