readArray() — spring-boot Function Reference
Architecture documentation for the readArray() function in JSONTokener.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0ed2fa59_d163_c92c_e366_27997083938e["readArray()"] 9d280377_39f9_945d_4b0c_8be3562c4bd5["nextValue()"] 9d280377_39f9_945d_4b0c_8be3562c4bd5 -->|calls| 0ed2fa59_d163_c92c_e366_27997083938e 4a327d15_c9d7_fbe1_89b7_43cf755708ae["nextCleanInternal()"] 0ed2fa59_d163_c92c_e366_27997083938e -->|calls| 4a327d15_c9d7_fbe1_89b7_43cf755708ae 5d37c1ba_6649_7ef7_7cb2_9bcac45ebb3e["syntaxError()"] 0ed2fa59_d163_c92c_e366_27997083938e -->|calls| 5d37c1ba_6649_7ef7_7cb2_9bcac45ebb3e 9d280377_39f9_945d_4b0c_8be3562c4bd5["nextValue()"] 0ed2fa59_d163_c92c_e366_27997083938e -->|calls| 9d280377_39f9_945d_4b0c_8be3562c4bd5 style 0ed2fa59_d163_c92c_e366_27997083938e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
cli/spring-boot-cli/src/json-shade/java/org/springframework/boot/cli/json/JSONTokener.java lines 411–447
private JSONArray readArray() throws JSONException {
JSONArray result = new JSONArray();
/* to cover input that ends with ",]". */
boolean hasTrailingSeparator = false;
while (true) {
switch (nextCleanInternal()) {
case -1:
throw syntaxError("Unterminated array");
case ']':
if (hasTrailingSeparator) {
result.put(null);
}
return result;
case ',', ';':
/* A separator without a value first means "null". */
result.put(null);
hasTrailingSeparator = true;
continue;
default:
this.pos--;
}
result.put(nextValue());
switch (nextCleanInternal()) {
case ']':
return result;
case ',', ';':
hasTrailingSeparator = true;
continue;
default:
throw syntaxError("Unterminated array");
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does readArray() do?
readArray() is a function in the spring-boot codebase.
What does readArray() call?
readArray() calls 3 function(s): nextCleanInternal, nextValue, syntaxError.
What calls readArray()?
readArray() is called by 1 function(s): nextValue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free