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

elementsOf() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 7 called by 2

Entity Profile

Dependency Diagram

graph TD
  fc00432c_9487_7679_8e66_3ed049432f97["elementsOf()"]
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  76576a77_87f7_3680_8561_2923813db3c1 -->|calls| fc00432c_9487_7679_8e66_3ed049432f97
  3a531a70_a1fd_3707_b1ea_e2dacf3417d1["probablySingleElementOf()"]
  3a531a70_a1fd_3707_b1ea_e2dacf3417d1 -->|calls| fc00432c_9487_7679_8e66_3ed049432f97
  723faf45_147b_9b0f_f957_9de88f8cbb17["isEmpty()"]
  fc00432c_9487_7679_8e66_3ed049432f97 -->|calls| 723faf45_147b_9b0f_f957_9de88f8cbb17
  56983625_becb_2cdb_d3ed_1a0eb7c431a9["charAt()"]
  fc00432c_9487_7679_8e66_3ed049432f97 -->|calls| 56983625_becb_2cdb_d3ed_1a0eb7c431a9
  8f419e36_9bdd_d5ed_78e5_678922c51695["ElementsParser()"]
  fc00432c_9487_7679_8e66_3ed049432f97 -->|calls| 8f419e36_9bdd_d5ed_78e5_678922c51695
  f404fe03_3fa9_69e6_3c8e_fb8d93c586f7["parse()"]
  fc00432c_9487_7679_8e66_3ed049432f97 -->|calls| f404fe03_3fa9_69e6_3c8e_fb8d93c586f7
  684fa635_ba33_d688_6736_73efc5877dd4["getSize()"]
  fc00432c_9487_7679_8e66_3ed049432f97 -->|calls| 684fa635_ba33_d688_6736_73efc5877dd4
  8d8ef66e_fc29_736c_c815_846df9fa8305["getType()"]
  fc00432c_9487_7679_8e66_3ed049432f97 -->|calls| 8d8ef66e_fc29_736c_c815_846df9fa8305
  55e4845d_b617_c801_b518_23622111525d["getInvalidChars()"]
  fc00432c_9487_7679_8e66_3ed049432f97 -->|calls| 55e4845d_b617_c801_b518_23622111525d
  style fc00432c_9487_7679_8e66_3ed049432f97 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 673–699

	@Contract("_, false, _ -> !null")
	private static @Nullable Elements elementsOf(@Nullable CharSequence name, boolean returnNullIfInvalid,
			int parserCapacity) {
		if (name == null) {
			Assert.isTrue(returnNullIfInvalid, "'name' must not be null");
			return null;
		}
		if (name.isEmpty()) {
			return Elements.EMPTY;
		}
		if (name.charAt(0) == '.' || name.charAt(name.length() - 1) == '.') {
			if (returnNullIfInvalid) {
				return null;
			}
			throw new InvalidConfigurationPropertyNameException(name, Collections.singletonList('.'));
		}
		Elements elements = new ElementsParser(name, '.', parserCapacity).parse();
		for (int i = 0; i < elements.getSize(); i++) {
			if (elements.getType(i) == ElementType.NON_UNIFORM) {
				if (returnNullIfInvalid) {
					return null;
				}
				throw new InvalidConfigurationPropertyNameException(name, getInvalidChars(elements, i));
			}
		}
		return elements;
	}

Domain

Subdomains

Called By

  • of()
  • probablySingleElementOf()

Frequently Asked Questions

What does elementsOf() do?
elementsOf() is a function in the spring-boot codebase.
What does elementsOf() call?
elementsOf() calls 7 function(s): ElementsParser, charAt, getInvalidChars, getSize, getType, isEmpty, parse.
What calls elementsOf()?
elementsOf() is called by 2 function(s): of, probablySingleElementOf.

Analyze Your Own Codebase

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

Try Supermodel Free