playn.flash.json.impl
Class JreJsonNumber

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

public class JreJsonNumber
extends JreJsonValue
implements JsonNumber

Server-side implementation of JsonNumber.


Constructor Summary
JreJsonNumber(double number)
           
 
Method Summary
 double getNumber()
           
 Object getObject()
           
 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

JreJsonNumber

public JreJsonNumber(double number)
Method Detail

getNumber

public double getNumber()
Specified by:
getNumber in interface JsonNumber

getObject

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

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()
Description copied from interface: JsonValue
Returns a serialized JSON string representing this value.

Specified by:
toJson in interface JsonValue
Returns:


Copyright © 2011. All Rights Reserved.