Package org.aesh.terminal.utils
Enum ANSIBuilder.SemanticColor
- All Implemented Interfaces:
Serializable,Comparable<ANSIBuilder.SemanticColor>
- Enclosing class:
- ANSIBuilder
Semantic color categories used for theme-aware styling.
Each entry stores a default ANSI code and a capability getter
for resolving the theme-appropriate code at runtime.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintReturns the default ANSI color code for this semantic color.intReturns the suggested ANSI code from the given capability.static ANSIBuilder.SemanticColorReturns the enum constant of this type with the specified name.static ANSIBuilder.SemanticColor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ERROR
-
SUCCESS
-
WARNING
-
INFO
-
DEBUG
-
TRACE
-
TIMESTAMP
-
MESSAGE
-
CATEGORY
-
THREAD_NAME
-
FATAL
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
defaultCode
public int defaultCode()Returns the default ANSI color code for this semantic color. -
getFromCapability
Returns the suggested ANSI code from the given capability.
-