MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / push

Method push

src/main/java/com/volmit/adapt/util/JSONWriter.java:266–273  ·  view source on GitHub ↗

Push an array or object scope. @param jo The scope to open. @throws JSONException If nesting is too deep.

(JSONObject jo)

Source from the content-addressed store, hash-verified

264 * @throws JSONException If nesting is too deep.
265 */
266 private void push(JSONObject jo) throws JSONException {
267 if (this.top >= maxdepth) {
268 throw new JSONException("Nesting too deep.");
269 }
270 this.stack[this.top] = jo;
271 this.mode = jo == null ? 'a' : 'k';
272 this.top += 1;
273 }
274
275 /**
276 * Append either the value <code>true</code> or the value <code>false</code>

Callers 2

arrayMethod · 0.95
objectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected