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

add() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 6 called by 205

Entity Profile

Dependency Diagram

graph TD
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  10379bd7_d9a9_c449_5d9e_3d56fd5ff5c0["asContributors()"]
  10379bd7_d9a9_c449_5d9e_3d56fd5ff5c0 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  8f1c6b28_be4a_c6c7_649c_a12f6e8021a8["expandProfiles()"]
  8f1c6b28_be4a_c6c7_649c_a12f6e8021a8 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  aac53ca1_1c99_728c_a9f5_e1db56228ccd["registerShutdownHook()"]
  aac53ca1_1c99_728c_a9f5_e1db56228ccd -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  58859c69_8bad_60e7_fd4d_bed0f8b8d789["add()"]
  58859c69_8bad_60e7_fd4d_bed0f8b8d789 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  b29e4c8d_349d_569b_228d_d7bb880eb65b["getValidators()"]
  b29e4c8d_349d_569b_228d_d7bb880eb65b -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  2b43b8a4_a8e1_d2c9_d61b_72b8b23e18d2["bindIndexed()"]
  2b43b8a4_a8e1_d2c9_d61b_72b8b23e18d2 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  90f89c0e_f8a3_a470_c641_acaae8e6bc6f["getKnownIndexedChildren()"]
  90f89c0e_f8a3_a470_c641_acaae8e6bc6f -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  b96ffcc5_6766_3a9b_ede9_be5f729c1b6d["assertNoUnboundChildren()"]
  b96ffcc5_6766_3a9b_ede9_be5f729c1b6d -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  3bc67b0c_4fce_a432_712b_f05fccbfc51f["getDeclaredMethods()"]
  3bc67b0c_4fce_a432_712b_f05fccbfc51f -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  162f4467_dcd4_9555_aafe_79bd463f235b["bind()"]
  162f4467_dcd4_9555_aafe_79bd463f235b -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  7aa7c7f1_53b7_c1f7_1b1c_b5d601b34a76["create()"]
  7aa7c7f1_53b7_c1f7_1b1c_b5d601b34a76 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  94235fe8_bed0_cb46_b2bd_d850d45e07f1["parseConstructorParameters()"]
  94235fe8_bed0_cb46_b2bd_d850d45e07f1 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  a9db6bd8_383a_89b8_9f12_a438fb821df8["parseConstructorParameters()"]
  a9db6bd8_383a_89b8_9f12_a438fb821df8 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  5e9a2b89_9f28_fe3f_34a9_f77404228478["onStart()"]
  5e9a2b89_9f28_fe3f_34a9_f77404228478 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  style 7ed947bf_22a1_2781_a2ae_759aa1907445 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 1078–1103

		private void add(int start, int end, ElementType type,
				@Nullable Function<CharSequence, CharSequence> valueProcessor) {
			if ((end - start) < 1 || type == ElementType.EMPTY) {
				return;
			}
			if (this.start.length == this.size) {
				this.start = expand(this.start);
				this.end = expand(this.end);
				this.type = expand(this.type);
				this.resolved = expand(this.resolved);
			}
			if (valueProcessor != null) {
				if (this.resolved == null) {
					this.resolved = new CharSequence[this.start.length];
				}
				CharSequence resolved = valueProcessor.apply(this.source.subSequence(start, end));
				Elements resolvedElements = new ElementsParser(resolved, '.').parse();
				Assert.state(resolvedElements.getSize() == 1, "Resolved element must not contain multiple elements");
				this.resolved[this.size] = resolvedElements.get(0);
				type = resolvedElements.getType(0);
			}
			this.start[this.size] = start;
			this.end[this.size] = end;
			this.type[this.size] = type;
			this.size++;
		}

Domain

Subdomains

Called By

Frequently Asked Questions

What does add() do?
add() is a function in the spring-boot codebase.
What does add() call?
add() calls 6 function(s): ElementsParser, expand, get, getSize, getType, parse.
What calls add()?
add() is called by 205 function(s): add, asContributors, asLocationsList, assertNoUnboundChildren, bind, bindIndexed, bindOrCreateWhenBindSuccessfulShouldReturnBoundValue, bindRenamedPropertyToClassBean, and 197 more.

Analyze Your Own Codebase

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

Try Supermodel Free