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

getElement() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 7 called by 9

Entity Profile

Dependency Diagram

graph TD
  bc164715_9139_37ca_1cb7_07a5191210d7["getElement()"]
  dc096334_7316_4621_3470_9e12e8963800["getKeyName()"]
  dc096334_7316_4621_3470_9e12e8963800 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  772b09b6_d11e_bfff_26ce_f91f0f77fe69["getIndexed()"]
  772b09b6_d11e_bfff_26ce_f91f0f77fe69 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  eea1a5b7_99d0_ac13_05b3_53505f333d44["isFieldNameMatch()"]
  eea1a5b7_99d0_ac13_05b3_53505f333d44 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  54e7db73_1a39_58a7_c600_770bf6d1f562["getLastElement()"]
  54e7db73_1a39_58a7_c600_770bf6d1f562 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  2c78d023_61db_8b75_0bb3_5482fd3d06a7["compare()"]
  2c78d023_61db_8b75_0bb3_5482fd3d06a7 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  1d3b014c_e498_a01f_8121_d6615527e8f9["asSystemEnvironmentLegacyName()"]
  1d3b014c_e498_a01f_8121_d6615527e8f9 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  cdbf1eb7_920c_20fb_1609_cacf6bcae1e5["buildToString()"]
  cdbf1eb7_920c_20fb_1609_cacf6bcae1e5 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4["buildDefaultToString()"]
  bfe9b8ba_3fc6_5405_032e_3c148ec14bf4 -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  c285e055_2215_43d2_d12a_653e590a306b["hasDashedElement()"]
  c285e055_2215_43d2_d12a_653e590a306b -->|calls| bc164715_9139_37ca_1cb7_07a5191210d7
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  bc164715_9139_37ca_1cb7_07a5191210d7 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  8d8ef66e_fc29_736c_c815_846df9fa8305["getType()"]
  bc164715_9139_37ca_1cb7_07a5191210d7 -->|calls| 8d8ef66e_fc29_736c_c815_846df9fa8305
  50ab77a1_5a37_b789_ed17_ece7194cd0be["isIndexed()"]
  bc164715_9139_37ca_1cb7_07a5191210d7 -->|calls| 50ab77a1_5a37_b789_ed17_ece7194cd0be
  0fc42192_9b0a_a3da_b92c_873e4b869194["toString()"]
  bc164715_9139_37ca_1cb7_07a5191210d7 -->|calls| 0fc42192_9b0a_a3da_b92c_873e4b869194
  40e555d0_bd62_9756_b558_ff4da50b9059["convertToOriginalForm()"]
  bc164715_9139_37ca_1cb7_07a5191210d7 -->|calls| 40e555d0_bd62_9756_b558_ff4da50b9059
  style bc164715_9139_37ca_1cb7_07a5191210d7 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 149–173

	public String getElement(int elementIndex, Form form) {
		CharSequence element = this.elements.get(elementIndex);
		ElementType type = this.elements.getType(elementIndex);
		if (type.isIndexed()) {
			return element.toString();
		}
		if (form == Form.ORIGINAL) {
			if (type != ElementType.NON_UNIFORM) {
				return element.toString();
			}
			return convertToOriginalForm(element).toString();
		}
		if (form == Form.DASHED) {
			if (type == ElementType.UNIFORM || type == ElementType.DASHED) {
				return element.toString();
			}
			return convertToDashedElement(element).toString();
		}
		CharSequence uniformElement = this.uniformElements[elementIndex];
		if (uniformElement == null) {
			uniformElement = (type != ElementType.UNIFORM) ? convertToUniformElement(element) : element;
			this.uniformElements[elementIndex] = uniformElement.toString();
		}
		return uniformElement.toString();
	}

Domain

Subdomains

Frequently Asked Questions

What does getElement() do?
getElement() is a function in the spring-boot codebase.
What does getElement() call?
getElement() calls 7 function(s): convertToDashedElement, convertToOriginalForm, convertToUniformElement, get, getType, isIndexed, toString.
What calls getElement()?
getElement() is called by 9 function(s): asSystemEnvironmentLegacyName, buildDefaultToString, buildToString, compare, getIndexed, getKeyName, getLastElement, hasDashedElement, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free