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

getTypeUseAnnotation() — spring-boot Function Reference

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

Function java GradlePlugin RunTasks calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  c4b5c2e9_7f53_db1b_775f_ff1944513c4d["getTypeUseAnnotation()"]
  7d730f5c_6f1e_f6dc_a86c_b53db5a723d8["hasNullableAnnotation()"]
  7d730f5c_6f1e_f6dc_a86c_b53db5a723d8 -->|calls| c4b5c2e9_7f53_db1b_775f_ff1944513c4d
  6ba62623_7f72_4fbe_a844_3fc78ffb241c["equals()"]
  c4b5c2e9_7f53_db1b_775f_ff1944513c4d -->|calls| 6ba62623_7f72_4fbe_a844_3fc78ffb241c
  1baabe57_48a3_d81d_65fc_4f3335b91796["toString()"]
  c4b5c2e9_7f53_db1b_775f_ff1944513c4d -->|calls| 1baabe57_48a3_d81d_65fc_4f3335b91796
  style c4b5c2e9_7f53_db1b_775f_ff1944513c4d 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 269–278

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

Domain

Subdomains

Called By

  • hasNullableAnnotation()

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free