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

processMethod() — spring-boot Function Reference

Architecture documentation for the processMethod() function in TypeElementMembers.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 6 called by 1

Entity Profile

Dependency Diagram

graph TD
  f0ca77a0_5018_2dff_9a79_2737dae0d46e["processMethod()"]
  af908b85_78f9_f548_ee21_51bdd094454d["process()"]
  af908b85_78f9_f548_ee21_51bdd094454d -->|calls| f0ca77a0_5018_2dff_9a79_2737dae0d46e
  53b8f212_78ae_6a75_595d_00b22f3580ae["isPublic()"]
  f0ca77a0_5018_2dff_9a79_2737dae0d46e -->|calls| 53b8f212_78ae_6a75_595d_00b22f3580ae
  fddee13b_f50f_df13_19a5_de85c329880d["isGetter()"]
  f0ca77a0_5018_2dff_9a79_2737dae0d46e -->|calls| fddee13b_f50f_df13_19a5_de85c329880d
  d916f388_11e4_ee3d_9e5e_d206b598d66d["getAccessorName()"]
  f0ca77a0_5018_2dff_9a79_2737dae0d46e -->|calls| d916f388_11e4_ee3d_9e5e_d206b598d66d
  d7b87488_a9f1_ce3d_1844_683e1e25461b["getMatchingGetter()"]
  f0ca77a0_5018_2dff_9a79_2737dae0d46e -->|calls| d7b87488_a9f1_ce3d_1844_683e1e25461b
  c4f476e8_9c9f_ef56_138b_2c789d2a223b["isSetter()"]
  f0ca77a0_5018_2dff_9a79_2737dae0d46e -->|calls| c4f476e8_9c9f_ef56_138b_2c789d2a223b
  6b6cd143_9b4f_5d53_f97a_04491e692bfe["getMatchingSetter()"]
  f0ca77a0_5018_2dff_9a79_2737dae0d46e -->|calls| 6b6cd143_9b4f_5d53_f97a_04491e692bfe
  style f0ca77a0_5018_2dff_9a79_2737dae0d46e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeElementMembers.java lines 89–111

	private void processMethod(ExecutableElement method) {
		if (isPublic(method)) {
			String name = method.getSimpleName().toString();
			if (isGetter(method)) {
				String propertyName = getAccessorName(name);
				List<ExecutableElement> matchingGetters = this.publicGetters.computeIfAbsent(propertyName,
						(k) -> new ArrayList<>());
				TypeMirror returnType = method.getReturnType();
				if (getMatchingGetter(matchingGetters, returnType) == null) {
					matchingGetters.add(method);
				}
			}
			else if (isSetter(method)) {
				String propertyName = getAccessorName(name);
				List<ExecutableElement> matchingSetters = this.publicSetters.computeIfAbsent(propertyName,
						(k) -> new ArrayList<>());
				TypeMirror paramType = method.getParameters().get(0).asType();
				if (getMatchingSetter(matchingSetters, paramType) == null) {
					matchingSetters.add(method);
				}
			}
		}
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does processMethod() do?
processMethod() is a function in the spring-boot codebase.
What does processMethod() call?
processMethod() calls 6 function(s): getAccessorName, getMatchingGetter, getMatchingSetter, isGetter, isPublic, isSetter.
What calls processMethod()?
processMethod() is called by 1 function(s): process.

Analyze Your Own Codebase

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

Try Supermodel Free