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

writeElement() — spring-boot Function Reference

Architecture documentation for the writeElement() function in JsonValueWriter.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  be5c69d6_bb1a_151d_0ccc_edbc7d4f9bad["writeElement()"]
  8afe88e6_bc39_204a_345c_9a698040eacf["updatePath()"]
  be5c69d6_bb1a_151d_0ccc_edbc7d4f9bad -->|calls| 8afe88e6_bc39_204a_345c_9a698040eacf
  b053ccff_1606_aca1_2cc4_7ade10f9a1f0["incrementIndexAndAddCommaIfRequired()"]
  be5c69d6_bb1a_151d_0ccc_edbc7d4f9bad -->|calls| b053ccff_1606_aca1_2cc4_7ade10f9a1f0
  50d7a4bd_f5f4_c5d4_8463_aa8f63ebe0a2["write()"]
  be5c69d6_bb1a_151d_0ccc_edbc7d4f9bad -->|calls| 50d7a4bd_f5f4_c5d4_8463_aa8f63ebe0a2
  b826d5cb_51ee_8f69_cd89_ee60e44f9064["restorePath()"]
  be5c69d6_bb1a_151d_0ccc_edbc7d4f9bad -->|calls| b826d5cb_51ee_8f69_cd89_ee60e44f9064
  style be5c69d6_bb1a_151d_0ccc_edbc7d4f9bad fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/json/JsonValueWriter.java lines 211–218

	<E> void writeElement(E element) {
		ActiveSeries activeSeries = this.activeSeries.peek();
		Assert.state(activeSeries != null, "No series has been started");
		this.path = activeSeries.updatePath(this.path);
		activeSeries.incrementIndexAndAddCommaIfRequired();
		write(element);
		this.path = activeSeries.restorePath(this.path);
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does writeElement() do?
writeElement() is a function in the spring-boot codebase.
What does writeElement() call?
writeElement() calls 4 function(s): incrementIndexAndAddCommaIfRequired, restorePath, updatePath, write.

Analyze Your Own Codebase

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

Try Supermodel Free