Class FormattingUtil

java.lang.Object
net.neoforged.testframework.summary.FormattingUtil

public final class FormattingUtil extends Object
  • Constructor Details

    • FormattingUtil

      public FormattingUtil()
  • Method Details

    • componentToString

      public static String componentToString(Component component, Style baseStyle, BiFunction<Style,String,String> formatter)
    • componentToPlainString

      public static String componentToPlainString(Component component)
    • componentToAnsiFormattedText

      public static String componentToAnsiFormattedText(Component component)
    • componentsToAnsiFormattedText

      public static String componentsToAnsiFormattedText(List<Component> components)
    • componentToMarkdownFormattedText

      public static String componentToMarkdownFormattedText(Component component)
    • componentsToPlainString

      public static String componentsToPlainString(List<Component> components)
    • componentsToMarkdownFormattedText

      public static String componentsToMarkdownFormattedText(List<Component> components)
    • toAnsi

      private static String toAnsi(Style style, String text)
    • toMarkdown

      private static String toMarkdown(Style style, String text)