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 e8449afe_d093_aefb_5ba5_e395f33c931b["readArray()"] e00d01c8_1ae8_f530_0266_0863c164a433["nextValue()"] e00d01c8_1ae8_f530_0266_0863c164a433 -->|calls| e8449afe_d093_aefb_5ba5_e395f33c931b ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13["nextCleanInternal()"] e8449afe_d093_aefb_5ba5_e395f33c931b -->|calls| ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13 424682c6_51c3_cdab_a5b5_25e0f9a6d8eb["syntaxError()"] e8449afe_d093_aefb_5ba5_e395f33c931b -->|calls| 424682c6_51c3_cdab_a5b5_25e0f9a6d8eb e00d01c8_1ae8_f530_0266_0863c164a433["nextValue()"] e8449afe_d093_aefb_5ba5_e395f33c931b -->|calls| e00d01c8_1ae8_f530_0266_0863c164a433 style e8449afe_d093_aefb_5ba5_e395f33c931b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/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