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

append() — spring-boot Function Reference

Architecture documentation for the append() function in AnsiString.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  578631f5_9374_c4b9_cc42_bfe07c956609["append()"]
  fdc23894_5a5f_0d93_3d82_72c7a7471e12["isAnsiSupported()"]
  578631f5_9374_c4b9_cc42_bfe07c956609 -->|calls| fdc23894_5a5f_0d93_3d82_72c7a7471e12
  c5a9c6a6_3ce2_2f34_0c32_90b71dc4d0a3["applyCode()"]
  578631f5_9374_c4b9_cc42_bfe07c956609 -->|calls| c5a9c6a6_3ce2_2f34_0c32_90b71dc4d0a3
  ab720548_1f64_e04f_e6c2_8d59b0880f0d["toString()"]
  578631f5_9374_c4b9_cc42_bfe07c956609 -->|calls| ab720548_1f64_e04f_e6c2_8d59b0880f0d
  style 578631f5_9374_c4b9_cc42_bfe07c956609 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/AnsiString.java lines 49–60

	AnsiString append(String text, Code... codes) {
		if (codes.length == 0 || !isAnsiSupported()) {
			this.value.append(text);
			return this;
		}
		Ansi ansi = Ansi.ansi();
		for (Code code : codes) {
			ansi = applyCode(ansi, code);
		}
		this.value.append(ansi.a(text).reset().toString());
		return this;
	}

Domain

Subdomains

Calls

  • applyCode()
  • isAnsiSupported()
  • toString()

Frequently Asked Questions

What does append() do?
append() is a function in the spring-boot codebase.
What does append() call?
append() calls 3 function(s): applyCode, isAnsiSupported, toString.

Analyze Your Own Codebase

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

Try Supermodel Free