| Modifier and Type | Method and Description
|
|---|
| public void |
|
| public void |
|
| public void |
|
| public boolean |
|
| public boolean[] | asBooleanArray()Returns the children of this value as a newly allocated boolean array.
|
| public byte | asByte()Returns this value as a byte.
|
| public byte[] | asByteArray()Returns the children of this value as a newly allocated byte array.
|
| public char | asChar()Returns this value as a char.
|
| public char[] | asCharArray()Returns the children of this value as a newly allocated char array.
|
| public double | asDouble()Returns this value as a double.
|
| public double[] | asDoubleArray()Returns the children of this value as a newly allocated double array.
|
| public float | asFloat()Returns this value as a float.
|
| public float[] | asFloatArray()Returns the children of this value as a newly allocated float array.
|
| public int | asInt()Returns this value as an int.
|
| public int[] | asIntArray()Returns the children of this value as a newly allocated int array.
|
| public long | asLong()Returns this value as a long.
|
| public long[] | asLongArray()Returns the children of this value as a newly allocated long array.
|
| public short | asShort()Returns this value as a short.
|
| public short[] | asShortArray()Returns the children of this value as a newly allocated short array.
|
| public String | Returns: May be null if this value is null. asString()Returns this value as a string.
|
| public String[] | asStringArray()Returns the children of this value as a newly allocated String array.
|
| public JsonValue | child()Returns the first child for this object or array.
|
| public boolean |
|
| public JsonValue | get(int index)Returns the child at the specified index.
|
| public JsonValue | get(String name)Returns the child with the specified name.
|
| public boolean | getBoolean(String name, boolean defaultValue)Finds the child with the specified name and returns it as a boolean.
|
| public boolean | getBoolean(String name)Finds the child with the specified name and returns it as a boolean.
|
| public boolean | getBoolean(int index)Finds the child with the specified index and returns it as a boolean.
|
| public byte | getByte(String name, byte defaultValue)Finds the child with the specified name and returns it as a byte.
|
| public byte | getByte(String name)Finds the child with the specified name and returns it as a byte.
|
| public byte | getByte(int index)Finds the child with the specified index and returns it as a byte.
|
| public char | getChar(String name, char defaultValue)Finds the child with the specified name and returns it as a char.
|
| public char | getChar(String name)Finds the child with the specified name and returns it as a char.
|
| public char | getChar(int index)Finds the child with the specified index and returns it as a char.
|
| public JsonValue | getChild(String name)Finds the child with the specified name and returns its first child.
|
| public double | getDouble(String name, double defaultValue)Finds the child with the specified name and returns it as a double.
|
| public double | getDouble(String name)Finds the child with the specified name and returns it as a double.
|
| public double | getDouble(int index)Finds the child with the specified index and returns it as a double.
|
| public float | getFloat(String name, float defaultValue)Finds the child with the specified name and returns it as a float.
|
| public float | getFloat(String name)Finds the child with the specified name and returns it as a float.
|
| public float | getFloat(int index)Finds the child with the specified index and returns it as a float.
|
| public JsonValue |
|
| public int | getInt(String name, int defaultValue)Finds the child with the specified name and returns it as an int.
|
| public int | getInt(String name)Finds the child with the specified name and returns it as an int.
|
| public int | getInt(int index)Finds the child with the specified index and returns it as an int.
|
| public long | getLong(String name, long defaultValue)Finds the child with the specified name and returns it as a long.
|
| public long | getLong(String name)Finds the child with the specified name and returns it as a long.
|
| public long | getLong(int index)Finds the child with the specified index and returns it as a long.
|
| public short | getShort(String name, short defaultValue)Finds the child with the specified name and returns it as a short.
|
| public short | getShort(String name)Finds the child with the specified name and returns it as a short.
|
| public short | getShort(int index)Finds the child with the specified index and returns it as a short.
|
| public String | getString(String name, String May be null. defaultValue)Finds the child with the specified name and returns it as a string.
|
| public String | getString(String name)Finds the child with the specified name and returns it as a string.
|
| public String | getString(int index)Finds the child with the specified index and returns it as a string.
|
| public boolean | has(String name)Returns true if a child with the specified name exists.
|
| public boolean | hasChild(String name)Returns true if a child with the specified name exists and has a child.
|
| private static void |
|
| private static void |
|
| public boolean |
|
| public boolean |
|
| public boolean |
|
| public boolean | isEmpty()Returns true if there are not children in the array or object.
|
| private static boolean |
|
| public boolean |
|
| public boolean |
|
| public boolean | isNumber()Returns true if this is a double or long value.
|
| private static boolean |
|
| public boolean |
|
| public boolean |
|
| public boolean | isValue()Returns true if this is not an array or object.
|
| public JsonValue.JsonIterator | iterator(String name)Returns an iterator for the child with the specified name, or an empty iterator if no child is found.
|
| public JsonValue.JsonIterator |
|
| public JsonValue | last()Returns the last child for this object or array.
|
| public String | name()Returns the name for this object value.
|
| public boolean |
|
| public JsonValue | next()Returns the next sibling of this value.
|
| public boolean | notEmpty()Returns true if there are one or more children in the array or object.
|
| public JsonValue | parent()Returns the parent for this value.
|
| public String |
|
| public String |
|
| private void |
|
| public void |
|
| private void |
|
| public JsonValue | prev()Returns the previous sibling of this value.
|
| public JsonValue | remove(int index)Removes the child with the specified index.
|
| public JsonValue | remove(String name)Removes the child with the specified name.
|
| public void | remove()Removes this value from its parent.
|
| public void | replace(JsonValue value)Replaces this value in its parent with the specified value.
|
| public JsonValue | require(int index)Returns the child at the specified index.
|
| public JsonValue |
|
| public void | set(JsonValue value)Sets the type and value to the specified JsonValue.
|
| public void |
|
| public void | set(double value, String May be null if the string representation is the string value of the double (eg, no leading zeros). stringValue)
|
| public void | set(long value, String May be null if the string representation is the string value of the long (eg, no leading zeros). stringValue)
|
| public void |
|
| public void | setChild(String name, JsonValue value)Sets the name of the specified value and replaces an existing child with the same name, else adds it after the last
child.
|
| public void | setChild(JsonValue value)Replaces an existing child with the same name as the specified value, else adds it after the last child.
|
| public void |
|
| public void |
|
| public void |
|
| public void |
|
| public void |
|
| public int | size()
Deprecated
Use size instead. Returns this number of children in the array or object.
|
| public String |
|
| public void |
|
| public String |
|
| public String | trace()Returns a human readable string representing the path from the root of the JSON object graph to this value.
|
| public JsonValue.ValueType |
|