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

getAnnotation() — spring-boot Function Reference

Architecture documentation for the getAnnotation() function in MetadataGenerationEnvironment.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 2 called by 6

Entity Profile

Dependency Diagram

graph TD
  b07aa383_b8ce_d873_4f85_69e1b53b9046["getAnnotation()"]
  dd714f32_5fca_69ba_2f4a_9d4bc000df4e["resolveItemDeprecation()"]
  dd714f32_5fca_69ba_2f4a_9d4bc000df4e -->|calls| b07aa383_b8ce_d873_4f85_69e1b53b9046
  9d8b1d4a_f07b_ca3a_60c4_ca8257f7c03c["getConfigurationPropertiesAnnotation()"]
  9d8b1d4a_f07b_ca3a_60c4_ca8257f7c03c -->|calls| b07aa383_b8ce_d873_4f85_69e1b53b9046
  cbeea196_03d5_8006_3264_4608b141de0d["getNestedConfigurationPropertyAnnotation()"]
  cbeea196_03d5_8006_3264_4608b141de0d -->|calls| b07aa383_b8ce_d873_4f85_69e1b53b9046
  78b1137b_017f_94e6_30ca_2708c1d259bf["getDefaultValueAnnotation()"]
  78b1137b_017f_94e6_30ca_2708c1d259bf -->|calls| b07aa383_b8ce_d873_4f85_69e1b53b9046
  7c239742_dc38_2af7_3d7d_dfae917c4683["getReadOperationAnnotation()"]
  7c239742_dc38_2af7_3d7d_dfae917c4683 -->|calls| b07aa383_b8ce_d873_4f85_69e1b53b9046
  f5714d6f_c6e5_f2a0_3871_e7c3cc09e207["getNameAnnotation()"]
  f5714d6f_c6e5_f2a0_3871_e7c3cc09e207 -->|calls| b07aa383_b8ce_d873_4f85_69e1b53b9046
  6ba62623_7f72_4fbe_a844_3fc78ffb241c["equals()"]
  b07aa383_b8ce_d873_4f85_69e1b53b9046 -->|calls| 6ba62623_7f72_4fbe_a844_3fc78ffb241c
  1baabe57_48a3_d81d_65fc_4f3335b91796["toString()"]
  b07aa383_b8ce_d873_4f85_69e1b53b9046 -->|calls| 1baabe57_48a3_d81d_65fc_4f3335b91796
  style b07aa383_b8ce_d873_4f85_69e1b53b9046 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	AnnotationMirror getAnnotation(Element element, String type) {
		if (element != null) {
			for (AnnotationMirror annotation : element.getAnnotationMirrors()) {
				if (type.equals(annotation.getAnnotationType().toString())) {
					return annotation;
				}
			}
		}
		return null;
	}

Domain

Subdomains

Called By

  • getConfigurationPropertiesAnnotation()
  • getDefaultValueAnnotation()
  • getNameAnnotation()
  • getNestedConfigurationPropertyAnnotation()
  • getReadOperationAnnotation()
  • resolveItemDeprecation()

Frequently Asked Questions

What does getAnnotation() do?
getAnnotation() is a function in the spring-boot codebase.
What does getAnnotation() call?
getAnnotation() calls 2 function(s): equals, toString.
What calls getAnnotation()?
getAnnotation() is called by 6 function(s): getConfigurationPropertiesAnnotation, getDefaultValueAnnotation, getNameAnnotation, getNestedConfigurationPropertyAnnotation, getReadOperationAnnotation, resolveItemDeprecation.

Analyze Your Own Codebase

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

Try Supermodel Free