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

buildDefaultToString() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 8 called by 1

Entity Profile

Dependency Diagram

graph TD
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4["buildDefaultToString()"]
  cdbf1eb7_920c_20fb_1609_cacf6bcae1e5["buildToString()"]
  cdbf1eb7_920c_20fb_1609_cacf6bcae1e5 -->|calls| bfe9b8ba_3fc6_5405_032e_3c148ec14bf4
  ed20b28a_7f5d_a088_a379_4b77e92143b5["canShortcutWithSource()"]
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 -->|calls| ed20b28a_7f5d_a088_a379_4b77e92143b5
  b35b2fba_b023_eff2_c807_c83ebd9c27eb["getSource()"]
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 -->|calls| b35b2fba_b023_eff2_c807_c83ebd9c27eb
  0fc42192_9b0a_a3da_b92c_873e4b869194["toString()"]
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 -->|calls| 0fc42192_9b0a_a3da_b92c_873e4b869194
  5acc70e6_66e3_8996_e541_fcd335154b61["getNumberOfElements()"]
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 -->|calls| 5acc70e6_66e3_8996_e541_fcd335154b61
  50ab77a1_5a37_b789_ed17_ece7194cd0be["isIndexed()"]
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 -->|calls| 50ab77a1_5a37_b789_ed17_ece7194cd0be
  723faf45_147b_9b0f_f957_9de88f8cbb17["isEmpty()"]
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 -->|calls| 723faf45_147b_9b0f_f957_9de88f8cbb17
  bc164715_9139_37ca_1cb7_07a5191210d7["getElement()"]
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  7abf93ba_3935_11c5_2c16_72f1719f101e["append()"]
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 -->|calls| 7abf93ba_3935_11c5_2c16_72f1719f101e
  style bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 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 573–594

	private String buildDefaultToString() {
		if (this.elements.canShortcutWithSource(ElementType.UNIFORM, ElementType.DASHED)) {
			return this.elements.getSource().toString();
		}
		int elements = getNumberOfElements();
		StringBuilder result = new StringBuilder(elements * 8);
		for (int i = 0; i < elements; i++) {
			boolean indexed = isIndexed(i);
			if (!result.isEmpty() && !indexed) {
				result.append('.');
			}
			if (indexed) {
				result.append('[');
				result.append(getElement(i, Form.ORIGINAL));
				result.append(']');
			}
			else {
				result.append(getElement(i, Form.DASHED));
			}
		}
		return result.toString();
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does buildDefaultToString() do?
buildDefaultToString() is a function in the spring-boot codebase.
What does buildDefaultToString() call?
buildDefaultToString() calls 8 function(s): append, canShortcutWithSource, getElement, getNumberOfElements, getSource, isEmpty, isIndexed, toString.
What calls buildDefaultToString()?
buildDefaultToString() is called by 1 function(s): buildToString.

Analyze Your Own Codebase

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

Try Supermodel Free