public abstract class JsonValue extends Object implements Printable
Constructor and Description |
---|
JsonValue() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(Object other) |
JsonArray |
getAsArray() |
JsonBoolean |
getAsBoolean() |
JsonNumber |
getAsNumber() |
JsonObject |
getAsObject() |
JsonString |
getAsString() |
abstract int |
hashCode() |
boolean |
isArray() |
boolean |
isBoolean() |
boolean |
isNull() |
boolean |
isNumber() |
boolean |
isObject() |
boolean |
isPrimitive() |
boolean |
isString() |
void |
output(IndentedWriter out) |
String |
toString() |
abstract void |
visit(JsonVisitor visitor) |
public boolean isObject()
public JsonObject getAsObject()
public boolean isArray()
public JsonArray getAsArray()
public boolean isPrimitive()
public boolean isNull()
public boolean isNumber()
public JsonNumber getAsNumber()
public boolean isString()
public JsonString getAsString()
public boolean isBoolean()
public JsonBoolean getAsBoolean()
public abstract void visit(JsonVisitor visitor)
public void output(IndentedWriter out)
Licenced under the Apache License, Version 2.0