Class AbstractStyleNameConverter.Magenta

All Implemented Interfaces:
PatternConverter
Enclosing class:
AbstractStyleNameConverter

@Plugin(name="magenta", category="Converter") public static final class AbstractStyleNameConverter.Magenta extends AbstractStyleNameConverter
Magenta style pattern converter. Adds ANSI color styling to the result of the enclosed pattern.
  • Field Details

  • Constructor Details

    • Magenta

      public Magenta(List<PatternFormatter> formatters, String styling)
      Constructs the converter. This constructor must be public.
      Parameters:
      formatters - The PatternFormatters to generate the text to manipulate.
      styling - The styling that should encapsulate the pattern.
  • Method Details

    • newInstance

      public static AbstractStyleNameConverter.Magenta newInstance(Configuration config, String[] options)
      Gets an instance of the class (called via reflection).
      Parameters:
      config - The current Configuration.
      options - The pattern options, may be null. If the first element is "short", only the first line of the throwable will be formatted.
      Returns:
      new instance of class or null