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

buildToString() — spring-boot Function Reference

Architecture documentation for the buildToString() function in ConfigurationPropertyName.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  cdbf1eb7_920c_20fb_1609_cacf6bcae1e5["buildToString()"]
  0fc42192_9b0a_a3da_b92c_873e4b869194["toString()"]
  0fc42192_9b0a_a3da_b92c_873e4b869194 -->|calls| cdbf1eb7_920c_20fb_1609_cacf6bcae1e5
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4["buildDefaultToString()"]
  cdbf1eb7_920c_20fb_1609_cacf6bcae1e5 -->|calls| bfe9b8ba_3fc6_5405_032e_3c148ec14bf4
  53880a7e_9440_e65c_1748_ec0028e14c0e["buildSimpleToString()"]
  cdbf1eb7_920c_20fb_1609_cacf6bcae1e5 -->|calls| 53880a7e_9440_e65c_1748_ec0028e14c0e
  bc164715_9139_37ca_1cb7_07a5191210d7["getElement()"]
  cdbf1eb7_920c_20fb_1609_cacf6bcae1e5 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  style cdbf1eb7_920c_20fb_1609_cacf6bcae1e5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java lines 564–571

	private String buildToString(ToStringFormat format) {
		return switch (format) {
			case DEFAULT -> buildDefaultToString();
			case SYSTEM_ENVIRONMENT -> buildSimpleToString('_', (i) -> getElement(i, Form.UNIFORM));
			case LEGACY_SYSTEM_ENVIRONMENT ->
				buildSimpleToString('_', (i) -> getElement(i, Form.ORIGINAL).replace('-', '_'));
		};
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does buildToString() do?
buildToString() is a function in the spring-boot codebase.
What does buildToString() call?
buildToString() calls 3 function(s): buildDefaultToString, buildSimpleToString, getElement.
What calls buildToString()?
buildToString() is called by 1 function(s): toString.

Analyze Your Own Codebase

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

Try Supermodel Free