Example usage for Java com.badlogic.gdx.utils JsonValue fields, constructors, methods, implement or subclass
The text is from its open source code.
JsonValue(ValueType type) | |
JsonValue(String value) | |
JsonValue(double value) | |
JsonValue(long value) | |
JsonValue(boolean value) |
boolean | asBoolean() Returns this value as a boolean. |
double | asDouble() Returns this value as a double. |
float | asFloat() Returns this value as a float. |
float[] | asFloatArray() Returns the children of this value as a newly allocated float array. |
int | asInt() Returns this value as an int. |
int[] | asIntArray() Returns the children of this value as a newly allocated int array. |
long | asLong() Returns this value as a long. |
String | asString() Returns this value as a string. |
JsonValue | get(int index) Returns the child at the specified index. |
JsonValue | get(String name) Returns the child with the specified name. |
boolean | getBoolean(String name, boolean defaultValue) Finds the child with the specified name and returns it as a boolean. |
boolean | getBoolean(String name) Finds the child with the specified name and returns it as a boolean. |
boolean | getBoolean(int index) Finds the child with the specified index and returns it as a boolean. |
JsonValue | getChild(String name) Finds the child with the specified name and returns its first child. |
float | getFloat(String name) Finds the child with the specified name and returns it as a float. |
float | getFloat(int index) Finds the child with the specified index and returns it as a float. |
float | getFloat(String name, float defaultValue) Finds the child with the specified name and returns it as a float. |
int | getInt(String name) Finds the child with the specified name and returns it as an int. |
int | getInt(int index) Finds the child with the specified index and returns it as an int. |
int | getInt(String name, int defaultValue) Finds the child with the specified name and returns it as an int. |
long | getLong(String name) Finds the child with the specified name and returns it as a long. |
long | getLong(int index) Finds the child with the specified index and returns it as a long. |
short | getShort(String name) Finds the child with the specified name and returns it as a short. |
short | getShort(int index) Finds the child with the specified index and returns it as a short. |
String | getString(String name) Finds the child with the specified name and returns it as a string. |
String | getString(int index) Finds the child with the specified index and returns it as a string. |
String | getString(String name, String defaultValue) Finds the child with the specified name and returns it as a string. |
boolean | has(String name) Returns true if a child with the specified name exists. |
boolean | hasChild(String name) Returns true if a child with the specified name exists and has a child. |
boolean | isArray() |
boolean | isBoolean() |
boolean | isNumber() Returns true if this is a double or long value. |
boolean | isObject() |
boolean | isString() |
boolean | isValue() Returns true if this is not an array or object. |
JsonIterator | iterator() |
JsonValue | next() Returns the next sibling of this value. |
String | prettyPrint(OutputType outputType, int singleLineColumns) |
String | prettyPrint(PrettyPrintSettings settings) |
JsonValue | remove(int index) Removes the child with the specified index. |
JsonValue | remove(String name) Removes the child with the specified name. |
JsonValue | require(int index) Returns the child at the specified index. |
JsonValue | require(String name) Returns the child with the specified name. |
void | set(String value) |
void | set(double value) |
void | set(long value) |
void | set(boolean value) |
void | setName(String name) |
void | setNext(JsonValue next) |
void | setPrev(JsonValue prev) |
void | setType(ValueType type) |
String | toString() |