Enum Class Style

java.lang.Object
java.lang.Enum<Style>
software.amazon.smithy.cli.Style
All Implemented Interfaces:
Serializable, Comparable<Style>, Constable

public enum Style extends Enum<Style>
Colors and styles for use with AnsiColorFormatter or CliPrinter.
  • Enum Constant Details

    • BOLD

      public static final Style BOLD
    • FAINT

      public static final Style FAINT
    • ITALIC

      public static final Style ITALIC
    • UNDERLINE

      public static final Style UNDERLINE
    • BLACK

      public static final Style BLACK
    • RED

      public static final Style RED
    • GREEN

      public static final Style GREEN
    • YELLOW

      public static final Style YELLOW
    • BLUE

      public static final Style BLUE
    • MAGENTA

      public static final Style MAGENTA
    • CYAN

      public static final Style CYAN
    • WHITE

      public static final Style WHITE
    • BRIGHT_BLACK

      public static final Style BRIGHT_BLACK
    • BRIGHT_RED

      public static final Style BRIGHT_RED
    • BRIGHT_GREEN

      public static final Style BRIGHT_GREEN
    • BRIGHT_YELLOW

      public static final Style BRIGHT_YELLOW
    • BRIGHT_BLUE

      public static final Style BRIGHT_BLUE
    • BRIGHT_MAGENTA

      public static final Style BRIGHT_MAGENTA
    • BRIGHT_CYAN

      public static final Style BRIGHT_CYAN
    • BRIGHT_WHITE

      public static final Style BRIGHT_WHITE
    • BG_BLACK

      public static final Style BG_BLACK
    • BG_RED

      public static final Style BG_RED
    • BG_GREEN

      public static final Style BG_GREEN
    • BG_YELLOW

      public static final Style BG_YELLOW
    • BG_BLUE

      public static final Style BG_BLUE
    • BG_MAGENTA

      public static final Style BG_MAGENTA
    • BG_CYAN

      public static final Style BG_CYAN
    • BG_WHITE

      public static final Style BG_WHITE
    • BG_BRIGHT_BLACK

      public static final Style BG_BRIGHT_BLACK
    • BG_BRIGHT_RED

      public static final Style BG_BRIGHT_RED
    • BG_BRIGHT_GREEN

      public static final Style BG_BRIGHT_GREEN
    • BG_BRIGHT_YELLOW

      public static final Style BG_BRIGHT_YELLOW
    • BG_BRIGHT_BLUE

      public static final Style BG_BRIGHT_BLUE
    • BG_BRIGHT_MAGENTA

      public static final Style BG_BRIGHT_MAGENTA
    • BG_BRIGHT_CYAN

      public static final Style BG_BRIGHT_CYAN
    • BG_BRIGHT_WHITE

      public static final Style BG_BRIGHT_WHITE
  • Method Details

    • values

      public static Style[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Style valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getAnsiColorCode

      public String getAnsiColorCode()