playn.flash.json.impl
Class JreJsonBoolean

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

public class JreJsonBoolean
extends JreJsonValue
implements JsonBoolean

Server-side implementation of JsonBoolean.


Constructor Summary
JreJsonBoolean(boolean bool)
           
 
Method Summary
 boolean getBoolean()
           
 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

JreJsonBoolean

public JreJsonBoolean(boolean bool)
Method Detail

getBoolean

public boolean getBoolean()
Specified by:
getBoolean in interface JsonBoolean

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()
              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.