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

collectElementsAnnotatedOrMetaAnnotatedWith() — spring-boot Function Reference

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

Function java GradlePlugin RunTasks calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  1e1770af_5087_8c47_84c0_42cf063d053b["collectElementsAnnotatedOrMetaAnnotatedWith()"]
  3c707779_60dc_e698_c34b_675d52906555["getElementsAnnotatedOrMetaAnnotatedWith()"]
  3c707779_60dc_e698_c34b_675d52906555 -->|calls| 1e1770af_5087_8c47_84c0_42cf063d053b
  6ba62623_7f72_4fbe_a844_3fc78ffb241c["equals()"]
  1e1770af_5087_8c47_84c0_42cf063d053b -->|calls| 6ba62623_7f72_4fbe_a844_3fc78ffb241c
  style 1e1770af_5087_8c47_84c0_42cf063d053b 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 295–310

	private boolean collectElementsAnnotatedOrMetaAnnotatedWith(TypeElement annotationType, LinkedList<Element> stack) {
		Element element = stack.peekLast();
		for (AnnotationMirror annotation : this.elements.getAllAnnotationMirrors(element)) {
			Element annotationElement = annotation.getAnnotationType().asElement();
			if (!stack.contains(annotationElement)) {
				stack.addLast(annotationElement);
				if (annotationElement.equals(annotationType)) {
					return true;
				}
				if (!collectElementsAnnotatedOrMetaAnnotatedWith(annotationType, stack)) {
					stack.removeLast();
				}
			}
		}
		return false;
	}

Domain

Subdomains

Calls

Called By

  • getElementsAnnotatedOrMetaAnnotatedWith()

Frequently Asked Questions

What does collectElementsAnnotatedOrMetaAnnotatedWith() do?
collectElementsAnnotatedOrMetaAnnotatedWith() is a function in the spring-boot codebase.
What does collectElementsAnnotatedOrMetaAnnotatedWith() call?
collectElementsAnnotatedOrMetaAnnotatedWith() calls 1 function(s): equals.
What calls collectElementsAnnotatedOrMetaAnnotatedWith()?
collectElementsAnnotatedOrMetaAnnotatedWith() is called by 1 function(s): getElementsAnnotatedOrMetaAnnotatedWith.

Analyze Your Own Codebase

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

Try Supermodel Free