Java com.badlogic.gdx.utils JsonValue fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.utils JsonValue fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.utils JsonValue.

The text is from its open source code.

Field

ValueTypetype
Stringname
JsonValuechild
May be null.

Constructor

Method

booleanasBoolean()
Returns this value as a boolean.
doubleasDouble()
Returns this value as a double.
floatasFloat()
Returns this value as a float.
float[]asFloatArray()
Returns the children of this value as a newly allocated float array.
intasInt()
Returns this value as an int.
int[]asIntArray()
Returns the children of this value as a newly allocated int array.
longasLong()
Returns this value as a long.
StringasString()
Returns this value as a string.
JsonValueget(int index)
Returns the child at the specified index.
JsonValueget(String name)
Returns the child with the specified name.
booleangetBoolean(String name, boolean defaultValue)
Finds the child with the specified name and returns it as a boolean.
booleangetBoolean(String name)
Finds the child with the specified name and returns it as a boolean.
booleangetBoolean(int index)
Finds the child with the specified index and returns it as a boolean.
JsonValuegetChild(String name)
Finds the child with the specified name and returns its first child.
floatgetFloat(String name)
Finds the child with the specified name and returns it as a float.
floatgetFloat(int index)
Finds the child with the specified index and returns it as a float.
floatgetFloat(String name, float defaultValue)
Finds the child with the specified name and returns it as a float.
intgetInt(String name)
Finds the child with the specified name and returns it as an int.
intgetInt(int index)
Finds the child with the specified index and returns it as an int.
intgetInt(String name, int defaultValue)
Finds the child with the specified name and returns it as an int.
longgetLong(String name)
Finds the child with the specified name and returns it as a long.
longgetLong(int index)
Finds the child with the specified index and returns it as a long.
shortgetShort(String name)
Finds the child with the specified name and returns it as a short.
shortgetShort(int index)
Finds the child with the specified index and returns it as a short.
StringgetString(String name)
Finds the child with the specified name and returns it as a string.
StringgetString(int index)
Finds the child with the specified index and returns it as a string.
StringgetString(String name, String defaultValue)
Finds the child with the specified name and returns it as a string.
booleanhas(String name)
Returns true if a child with the specified name exists.
booleanhasChild(String name)
Returns true if a child with the specified name exists and has a child.
booleanisArray()
booleanisBoolean()
booleanisNumber()
Returns true if this is a double or long value.
booleanisObject()
booleanisString()
booleanisValue()
Returns true if this is not an array or object.
JsonIteratoriterator()
JsonValuenext()
Returns the next sibling of this value.
StringprettyPrint(OutputType outputType, int singleLineColumns)
StringprettyPrint(PrettyPrintSettings settings)
JsonValueremove(int index)
Removes the child with the specified index.
JsonValueremove(String name)
Removes the child with the specified name.
JsonValuerequire(int index)
Returns the child at the specified index.
JsonValuerequire(String name)
Returns the child with the specified name.
voidset(String value)
voidset(double value)
voidset(long value)
voidset(boolean value)
voidsetName(String name)
voidsetNext(JsonValue next)
voidsetPrev(JsonValue prev)
voidsetType(ValueType type)
StringtoString()