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

isParentTheSame() — spring-boot Function Reference

Architecture documentation for the isParentTheSame() function in PropertyDescriptor.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  71f22fac_d60f_8323_a45b_9bf925057d3b["isParentTheSame()"]
  36448759_7cce_fec8_b5d7_153f868e0a92["isNested()"]
  36448759_7cce_fec8_b5d7_153f868e0a92 -->|calls| 71f22fac_d60f_8323_a45b_9bf925057d3b
  aa45fde1_49f9_f704_d617_32f6963ff950["getTopLevelType()"]
  71f22fac_d60f_8323_a45b_9bf925057d3b -->|calls| aa45fde1_49f9_f704_d617_32f6963ff950
  2f92313c_75ed_baa9_94c7_81e700548c9a["equals()"]
  71f22fac_d60f_8323_a45b_9bf925057d3b -->|calls| 2f92313c_75ed_baa9_94c7_81e700548c9a
  style 71f22fac_d60f_8323_a45b_9bf925057d3b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/PropertyDescriptor.java lines 157–171

	private boolean isParentTheSame(MetadataGenerationEnvironment environment, Element returnType,
			TypeElement element) {
		if (returnType == null || element == null) {
			return false;
		}
		returnType = getTopLevelType(returnType);
		Element candidate = element;
		while (candidate instanceof TypeElement) {
			if (returnType.equals(getTopLevelType(candidate))) {
				return true;
			}
			candidate = environment.getTypeUtils().asElement(((TypeElement) candidate).getSuperclass());
		}
		return false;
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does isParentTheSame() do?
isParentTheSame() is a function in the spring-boot codebase.
What does isParentTheSame() call?
isParentTheSame() calls 2 function(s): equals, getTopLevelType.
What calls isParentTheSame()?
isParentTheSame() is called by 1 function(s): isNested.

Analyze Your Own Codebase

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

Try Supermodel Free