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

getDescriptorForClass() — spring-boot Function Reference

Architecture documentation for the getDescriptorForClass() function in NoSuchMethodFailureAnalyzer.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 4 called by 2

Entity Profile

Dependency Diagram

graph TD
  f2faecf2_c2f1_38a2_5cf9_009912821e18["getDescriptorForClass()"]
  09e0370c_f24b_faed_8c3a_178cca5dc24b["getCallerMethodDescriptor()"]
  09e0370c_f24b_faed_8c3a_178cca5dc24b -->|calls| f2faecf2_c2f1_38a2_5cf9_009912821e18
  3fbc0775_0cd5_d7a6_4e05_cbe0d4d7f92e["getNoSuchMethodDescriptor()"]
  3fbc0775_0cd5_d7a6_4e05_cbe0d4d7f92e -->|calls| f2faecf2_c2f1_38a2_5cf9_009912821e18
  14b11eaa_e3d8_cd58_082c_b753d57bd262["findCandidates()"]
  f2faecf2_c2f1_38a2_5cf9_009912821e18 -->|calls| 14b11eaa_e3d8_cd58_082c_b753d57bd262
  6e1c7f22_c896_cd96_59ad_c79d5fad8d2d["load()"]
  f2faecf2_c2f1_38a2_5cf9_009912821e18 -->|calls| 6e1c7f22_c896_cd96_59ad_c79d5fad8d2d
  29d5dd2c_cc1b_0142_2afe_16395eb5e241["NoSuchMethodDescriptor()"]
  f2faecf2_c2f1_38a2_5cf9_009912821e18 -->|calls| 29d5dd2c_cc1b_0142_2afe_16395eb5e241
  43a280e3_9edf_5655_8561_a27649c9ed29["getTypeHierarchy()"]
  f2faecf2_c2f1_38a2_5cf9_009912821e18 -->|calls| 43a280e3_9edf_5655_8561_a27649c9ed29
  style f2faecf2_c2f1_38a2_5cf9_009912821e18 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzer.java lines 71–88

	private @Nullable NoSuchMethodDescriptor getDescriptorForClass(String message, @Nullable String className) {
		if (className == null) {
			return null;
		}
		List<URL> candidates = findCandidates(className);
		if (candidates == null) {
			return null;
		}
		Class<?> type = load(className);
		if (type == null) {
			return null;
		}
		List<ClassDescriptor> typeHierarchy = getTypeHierarchy(type);
		if (typeHierarchy == null) {
			return null;
		}
		return new NoSuchMethodDescriptor(message, className, candidates, typeHierarchy);
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does getDescriptorForClass() do?
getDescriptorForClass() is a function in the spring-boot codebase.
What does getDescriptorForClass() call?
getDescriptorForClass() calls 4 function(s): NoSuchMethodDescriptor, findCandidates, getTypeHierarchy, load.
What calls getDescriptorForClass()?
getDescriptorForClass() is called by 2 function(s): getCallerMethodDescriptor, getNoSuchMethodDescriptor.

Analyze Your Own Codebase

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

Try Supermodel Free