org.apache.logging.log4j.core.pattern
Enum AnsiEscape

java.lang.Object
  extended by java.lang.Enum<AnsiEscape>
      extended by org.apache.logging.log4j.core.pattern.AnsiEscape
All Implemented Interfaces:
Serializable, Comparable<AnsiEscape>

public enum AnsiEscape
extends Enum<AnsiEscape>


Enum Constant Summary
BG_BLACK
          Background Colors.
BG_BLUE
           
BG_CYAN
           
BG_GREEN
           
BG_MAGENTA
           
BG_RED
           
BG_WHITE
           
BG_YELLOW
           
BLACK
          Foreground Colors.
BLINK
           
BLUE
           
BRIGHT
           
CYAN
           
DEFAULT
           
DIM
           
FG_BLACK
           
FG_BLUE
           
FG_CYAN
           
FG_DEFAULT
           
FG_GREEN
           
FG_MAGENTA
           
FG_RED
           
FG_WHITE
           
FG_YELLOW
           
GREEN
           
HIDDEN
           
MAGENTA
           
NORMAL
          General Attributes.
PREFIX
           
RED
           
REVERSE
           
SEPARATOR
           
SUFFIX
           
UNDERLINE
           
WHITE
           
YELLOW
           
 
Method Summary
static String createSequence(String[] values)
           
 String getCode()
           
static String getDefaultStyle()
           
static AnsiEscape valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AnsiEscape[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PREFIX

public static final AnsiEscape PREFIX

SUFFIX

public static final AnsiEscape SUFFIX

SEPARATOR

public static final AnsiEscape SEPARATOR

NORMAL

public static final AnsiEscape NORMAL
General Attributes.


BRIGHT

public static final AnsiEscape BRIGHT

DIM

public static final AnsiEscape DIM

UNDERLINE

public static final AnsiEscape UNDERLINE

BLINK

public static final AnsiEscape BLINK

REVERSE

public static final AnsiEscape REVERSE

HIDDEN

public static final AnsiEscape HIDDEN

BLACK

public static final AnsiEscape BLACK
Foreground Colors.


FG_BLACK

public static final AnsiEscape FG_BLACK

RED

public static final AnsiEscape RED

FG_RED

public static final AnsiEscape FG_RED

GREEN

public static final AnsiEscape GREEN

FG_GREEN

public static final AnsiEscape FG_GREEN

YELLOW

public static final AnsiEscape YELLOW

FG_YELLOW

public static final AnsiEscape FG_YELLOW

BLUE

public static final AnsiEscape BLUE

FG_BLUE

public static final AnsiEscape FG_BLUE

MAGENTA

public static final AnsiEscape MAGENTA

FG_MAGENTA

public static final AnsiEscape FG_MAGENTA

CYAN

public static final AnsiEscape CYAN

FG_CYAN

public static final AnsiEscape FG_CYAN

WHITE

public static final AnsiEscape WHITE

FG_WHITE

public static final AnsiEscape FG_WHITE

DEFAULT

public static final AnsiEscape DEFAULT

FG_DEFAULT

public static final AnsiEscape FG_DEFAULT

BG_BLACK

public static final AnsiEscape BG_BLACK
Background Colors.


BG_RED

public static final AnsiEscape BG_RED

BG_GREEN

public static final AnsiEscape BG_GREEN

BG_YELLOW

public static final AnsiEscape BG_YELLOW

BG_BLUE

public static final AnsiEscape BG_BLUE

BG_MAGENTA

public static final AnsiEscape BG_MAGENTA

BG_CYAN

public static final AnsiEscape BG_CYAN

BG_WHITE

public static final AnsiEscape BG_WHITE
Method Detail

values

public static AnsiEscape[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AnsiEscape c : AnsiEscape.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AnsiEscape valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

getDefaultStyle

public static String getDefaultStyle()

getCode

public String getCode()

createSequence

public static String createSequence(String[] values)


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.