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

processElement() — spring-boot Function Reference

Architecture documentation for the processElement() function in ConfigurationMetadataAnnotationProcessor.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  0de6256e_c783_0189_36b9_bc233108210a["processElement()"]
  196a9cf5_3a28_ecb0_f088_06da291eb5c4["process()"]
  196a9cf5_3a28_ecb0_f088_06da291eb5c4 -->|calls| 0de6256e_c783_0189_36b9_bc233108210a
  9d74cf97_55ff_bec5_7bb8_c66ce716c7dc["getPrefix()"]
  0de6256e_c783_0189_36b9_bc233108210a -->|calls| 9d74cf97_55ff_bec5_7bb8_c66ce716c7dc
  a713ccee_d57a_6f81_38f7_d66f898902d6["processAnnotatedTypeElement()"]
  0de6256e_c783_0189_36b9_bc233108210a -->|calls| a713ccee_d57a_6f81_38f7_d66f898902d6
  15858b74_f158_b75b_cdbb_9766d246d21f["processExecutableElement()"]
  0de6256e_c783_0189_36b9_bc233108210a -->|calls| 15858b74_f158_b75b_cdbb_9766d246d21f
  style 0de6256e_c783_0189_36b9_bc233108210a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessor.java lines 242–258

	private void processElement(Element element) {
		try {
			AnnotationMirror annotation = this.metadataEnv.getConfigurationPropertiesAnnotation(element);
			if (annotation != null) {
				String prefix = getPrefix(annotation);
				if (element instanceof TypeElement typeElement) {
					processAnnotatedTypeElement(prefix, typeElement, new ArrayDeque<>());
				}
				else if (element instanceof ExecutableElement executableElement) {
					processExecutableElement(prefix, executableElement, new ArrayDeque<>());
				}
			}
		}
		catch (Exception ex) {
			throw new IllegalStateException("Error processing configuration meta-data on " + element, ex);
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does processElement() do?
processElement() is a function in the spring-boot codebase.
What does processElement() call?
processElement() calls 3 function(s): getPrefix, processAnnotatedTypeElement, processExecutableElement.
What calls processElement()?
processElement() 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