MCPcopy Create free account
hub / github.com/MCBans/MCBans / names

Method names

src/main/java/com/mcbans/plugin/org/json/JSONObject.java:715–722  ·  view source on GitHub ↗

Produce a JSONArray containing the names of the elements of this JSONObject. @return A JSONArray containing the key strings, or null if the JSONObject is empty.

()

Source from the content-addressed store, hash-verified

713 * is empty.
714 */
715 public JSONArray names() {
716 JSONArray ja = new JSONArray();
717 Iterator keys = keys();
718 while (keys.hasNext()) {
719 ja.put(keys.next());
720 }
721 return ja.length() == 0 ? null : ja;
722 }
723
724 /**
725 * Produce a string from a Number.

Callers 1

toStringMethod · 0.95

Calls 4

keysMethod · 0.95
putMethod · 0.95
lengthMethod · 0.95
nextMethod · 0.80

Tested by

no test coverage detected