Home / Function/ beforeKey() — spring-boot Function Reference

beforeKey() — spring-boot Function Reference

Architecture documentation for the beforeKey() function in JSONStringer.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  5071f7ab_a0fe_6bbf_a0e8_50413d3a3ee2["beforeKey()"]
  b882a0c4_5c4a_7762_3d17_2796837ca4be["key()"]
  b882a0c4_5c4a_7762_3d17_2796837ca4be -->|calls| 5071f7ab_a0fe_6bbf_a0e8_50413d3a3ee2
  9596cab2_d5a6_0f2b_a448_634ebb188df4["peek()"]
  5071f7ab_a0fe_6bbf_a0e8_50413d3a3ee2 -->|calls| 9596cab2_d5a6_0f2b_a448_634ebb188df4
  4bc521aa_77f0_104c_fbaa_5ff8efa00155["newline()"]
  5071f7ab_a0fe_6bbf_a0e8_50413d3a3ee2 -->|calls| 4bc521aa_77f0_104c_fbaa_5ff8efa00155
  6a51dcc6_e82a_1a05_431d_9fee7c63dcab["replaceTop()"]
  5071f7ab_a0fe_6bbf_a0e8_50413d3a3ee2 -->|calls| 6a51dcc6_e82a_1a05_431d_9fee7c63dcab
  style 5071f7ab_a0fe_6bbf_a0e8_50413d3a3ee2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-metadata/src/json-shade/java/org/springframework/boot/configurationmetadata/json/JSONStringer.java lines 373–383

	private void beforeKey() throws JSONException {
		Scope context = peek();
		if (context == Scope.NONEMPTY_OBJECT) { // first in object
			this.out.append(',');
		}
		else if (context != Scope.EMPTY_OBJECT) { // not in an object!
			throw new JSONException("Nesting problem");
		}
		newline();
		replaceTop(Scope.DANGLING_KEY);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does beforeKey() do?
beforeKey() is a function in the spring-boot codebase.
What does beforeKey() call?
beforeKey() calls 3 function(s): newline, peek, replaceTop.
What calls beforeKey()?
beforeKey() is called by 1 function(s): key.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free