beforeValue() — spring-boot Function Reference
Architecture documentation for the beforeValue() function in JSONStringer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD b634357f_6f8f_41d5_45a5_c5d3343bd58d["beforeValue()"] de7048ce_0db6_c87d_cbd5_2885dd68542a["open()"] de7048ce_0db6_c87d_cbd5_2885dd68542a -->|calls| b634357f_6f8f_41d5_45a5_c5d3343bd58d d5728516_edfd_11b6_90c1_8de8274cc06a["value()"] d5728516_edfd_11b6_90c1_8de8274cc06a -->|calls| b634357f_6f8f_41d5_45a5_c5d3343bd58d fdc6dc40_dd98_df76_a7ed_999403394249["peek()"] b634357f_6f8f_41d5_45a5_c5d3343bd58d -->|calls| fdc6dc40_dd98_df76_a7ed_999403394249 2403ad6c_a6e0_f601_1944_35b410cf83f8["replaceTop()"] b634357f_6f8f_41d5_45a5_c5d3343bd58d -->|calls| 2403ad6c_a6e0_f601_1944_35b410cf83f8 cce3afba_7ed2_f723_6502_829a455c1594["newline()"] b634357f_6f8f_41d5_45a5_c5d3343bd58d -->|calls| cce3afba_7ed2_f723_6502_829a455c1594 style b634357f_6f8f_41d5_45a5_c5d3343bd58d 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/JSONStringer.java lines 391–412
private void beforeValue() throws JSONException {
if (this.stack.isEmpty()) {
return;
}
Scope context = peek();
if (context == Scope.EMPTY_ARRAY) { // first in array
replaceTop(Scope.NONEMPTY_ARRAY);
newline();
}
else if (context == Scope.NONEMPTY_ARRAY) { // another in array
this.out.append(',');
newline();
}
else if (context == Scope.DANGLING_KEY) { // value for key
this.out.append(this.indent == null ? ":" : ": ");
replaceTop(Scope.NONEMPTY_OBJECT);
}
else if (context != Scope.NULL) {
throw new JSONException("Nesting problem");
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does beforeValue() do?
beforeValue() is a function in the spring-boot codebase.
What does beforeValue() call?
beforeValue() calls 3 function(s): newline, peek, replaceTop.
What calls beforeValue()?
beforeValue() is called by 2 function(s): open, value.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free