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

processNameWhenDeeplyNestedUsesCompoundPaths() — spring-boot Function Reference

Architecture documentation for the processNameWhenDeeplyNestedUsesCompoundPaths() function in JsonWriterTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  d38f714a_d86f_bd67_df93_c2cb60eed8ce["processNameWhenDeeplyNestedUsesCompoundPaths()"]
  0d94726e_741b_9208_9d8c_ca4cd0f4cf12["of()"]
  d38f714a_d86f_bd67_df93_c2cb60eed8ce -->|calls| 0d94726e_741b_9208_9d8c_ca4cd0f4cf12
  84506fbe_214d_f213_ad3f_496e15af47cb["usingMembers()"]
  d38f714a_d86f_bd67_df93_c2cb60eed8ce -->|calls| 84506fbe_214d_f213_ad3f_496e15af47cb
  e537a626_eefe_4fa4_6b81_c90a061a4f87["toString()"]
  d38f714a_d86f_bd67_df93_c2cb60eed8ce -->|calls| e537a626_eefe_4fa4_6b81_c90a061a4f87
  style d38f714a_d86f_bd67_df93_c2cb60eed8ce fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java lines 671–691

		@Test
		void processNameWhenDeeplyNestedUsesCompoundPaths() {
			List<String> paths = new ArrayList<>();
			JsonWriter<Couple> writer = JsonWriter.of((members) -> {
				members.add("one", Couple::person1).usingMembers((personMembers) -> {
					personMembers.add("first", Person::firstName);
					personMembers.add("last", Person::lastName);
				});
				members.add("two", Couple::person2).usingMembers((personMembers) -> {
					personMembers.add("first", Person::firstName);
					personMembers.add("last", Person::lastName);
				});
				members.applyingNameProcessor((path, existingName) -> {
					paths.add(path.toString());
					return existingName;
				});
			});
			Couple couple = new Couple(PERSON, new Person("Spring", "Framework", 20));
			writer.writeToString(couple);
			assertThat(paths).containsExactly("one", "one.first", "one.last", "two", "two.first", "two.last");
		}

Domain

Subdomains

Frequently Asked Questions

What does processNameWhenDeeplyNestedUsesCompoundPaths() do?
processNameWhenDeeplyNestedUsesCompoundPaths() is a function in the spring-boot codebase.
What does processNameWhenDeeplyNestedUsesCompoundPaths() call?
processNameWhenDeeplyNestedUsesCompoundPaths() calls 3 function(s): of, toString, usingMembers.

Analyze Your Own Codebase

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

Try Supermodel Free