Package org.h2.util.json
Class JSONArray
- java.lang.Object
-
- org.h2.util.json.JSONValue
-
- org.h2.util.json.JSONArray
-
public class JSONArray extends JSONValue
JSON array.
-
-
Constructor Summary
Constructors Constructor Description JSONArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addElement(JSONValue value)
Add a value to the array.void
addTo(JSONTarget<?> target)
Appends this value to the specified target.JSONValue[]
getArray()
Returns the value.
-
-
-
Field Detail
-
elements
private final java.util.ArrayList<JSONValue> elements
-
-
Method Detail
-
addElement
void addElement(JSONValue value)
Add a value to the array.- Parameters:
value
- the value to add
-
addTo
public void addTo(JSONTarget<?> target)
Description copied from class:JSONValue
Appends this value to the specified target.
-
getArray
public JSONValue[] getArray()
Returns the value.- Returns:
- the value
-
-