Package net.diversionmc.json
Class JSON.JSONArray
java.lang.Object
net.diversionmc.parser.util.Pointable
net.diversionmc.parser.pattern.Sentence
net.diversionmc.json.JSON.JSONValue
net.diversionmc.json.JSON.JSONArray
- Enclosing class:
- JSON
Parsed JSON array that stores a list of
JSON.JSONValue.-
Constructor Summary
ConstructorsConstructorDescriptionJSONArray(net.diversionmc.parser.util.FilePointer ptr, List<JSON.JSONValue> values)Construct a JSON Array [value,...] -
Method Summary
Methods inherited from class net.diversionmc.json.JSON.JSONValue
asArray, asNumber, asObject, asStringMethods inherited from class net.diversionmc.parser.pattern.Sentence
isStatementMethods inherited from class net.diversionmc.parser.util.Pointable
pointer
-
Constructor Details
-
JSONArray
Construct a JSON Array [value,...]- Parameters:
ptr- Creation position.values- Values to store.
-
-
Method Details
-
values
Get all values stored in this array.- Returns:
JSON.JSONValuelist.
-
toString
Serialize current JSONArray back to JSON.
-