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

printFrames() — spring-boot Function Reference

Architecture documentation for the printFrames() function in StandardStackTracePrinter.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 6 called by 1

Entity Profile

Dependency Diagram

graph TD
  b883e2dd_307c_55f6_ce0c_0f696467360d["printFrames()"]
  73898de1_d47e_badf_237e_a5abba45c416["printSingleStackTrace()"]
  73898de1_d47e_badf_237e_a5abba45c416 -->|calls| b883e2dd_307c_55f6_ce0c_0f696467360d
  c2dcaed2_c1b6_e419_112a_517658f69e3f["hasOption()"]
  b883e2dd_307c_55f6_ce0c_0f696467360d -->|calls| c2dcaed2_c1b6_e419_112a_517658f69e3f
  8ae047eb_9b7b_4163_8658_6dce441a4cb5["commonFramesCount()"]
  b883e2dd_307c_55f6_ce0c_0f696467360d -->|calls| 8ae047eb_9b7b_4163_8658_6dce441a4cb5
  c5fc5255_1ce1_7554_b051_a2fca9ae48e8["frames()"]
  b883e2dd_307c_55f6_ce0c_0f696467360d -->|calls| c5fc5255_1ce1_7554_b051_a2fca9ae48e8
  7b7513fc_a6c6_b8f0_0e62_401bbe98737e["omittedFilteredFrames()"]
  b883e2dd_307c_55f6_ce0c_0f696467360d -->|calls| 7b7513fc_a6c6_b8f0_0e62_401bbe98737e
  97521ab9_667b_94a1_3018_789d32b2ef2f["at()"]
  b883e2dd_307c_55f6_ce0c_0f696467360d -->|calls| 97521ab9_667b_94a1_3018_789d32b2ef2f
  00c3a292_9851_d353_6b1d_472ba85cedc1["omittedCommonFrames()"]
  b883e2dd_307c_55f6_ce0c_0f696467360d -->|calls| 00c3a292_9851_d353_6b1d_472ba85cedc1
  style b883e2dd_307c_55f6_ce0c_0f696467360d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/logging/StandardStackTracePrinter.java lines 132–152

	private void printFrames(Print print, StackTrace stackTrace, @Nullable StackTrace enclosing) throws IOException {
		int commonFrames = (!hasOption(Option.SHOW_COMMON_FRAMES)) ? stackTrace.commonFramesCount(enclosing) : 0;
		int filteredFrames = 0;
		StackTraceElement[] frames = stackTrace.frames();
		if (frames != null) {
			for (int i = 0; i < frames.length - commonFrames; i++) {
				StackTraceElement element = frames[i];
				if (!this.frameFilter.test(i, element)) {
					filteredFrames++;
					continue;
				}
				print.omittedFilteredFrames(filteredFrames);
				filteredFrames = 0;
				print.at(this.frameFormatter.apply(element));
			}
		}
		print.omittedFilteredFrames(filteredFrames);
		if (commonFrames != 0) {
			print.omittedCommonFrames(commonFrames);
		}
	}

Domain

Subdomains

Calls

  • at()
  • commonFramesCount()
  • frames()
  • hasOption()
  • omittedCommonFrames()
  • omittedFilteredFrames()

Frequently Asked Questions

What does printFrames() do?
printFrames() is a function in the spring-boot codebase.
What does printFrames() call?
printFrames() calls 6 function(s): at, commonFramesCount, frames, hasOption, omittedCommonFrames, omittedFilteredFrames.
What calls printFrames()?
printFrames() is called by 1 function(s): printSingleStackTrace.

Analyze Your Own Codebase

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

Try Supermodel Free