Top Fields Constructors Methods
io.github.kusoroadeolu.clique.internal.markup

public final Class PredefinedStyleContext

extends Object
Class Inheritance
Annotations
@InternalApi
since:3.2.0
Imports
io.github.kusoroadeolu.clique.configuration.StyleContext, io.github.kusoroadeolu.clique.internal.documentation.InternalApi, io.github.kusoroadeolu.clique.internal.exception.UnidentifiedStyleException, io.github.kusoroadeolu.clique.spi.AnsiCode, io.github.kusoroadeolu.clique.style.BackgroundCode, .ColorCode, .StyleCode, java.util.Map, java.util.concurrent.ConcurrentHashMap

Field Summary

Modifier and TypeField and Description
pack-priv static final StyleContext
BACKGROUND_CODES

A static, unmodifiable map that associates lowercase background color names (keys) with their corresponding BackgroundCode enum constants (values).

pack-priv static final StyleContext
COLOR_CODES

A static, unmodifiable map that associates lowercase color names (keys) with their corresponding ColorCode enum constants (values).

pack-priv static final Map<String, AnsiCode>
pack-priv static final StyleContext
STYLE_CODES

A static, unmodifiable map that associates lowercase style names (keys) with their corresponding StyleCode enum constants (values).

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AnsiCode
public static AnsiCode
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BACKGROUND_CODESback to summary
pack-priv static final StyleContext BACKGROUND_CODES

A static, unmodifiable map that associates lowercase background color names (keys) with their corresponding BackgroundCode enum constants (values).

COLOR_CODESback to summary
pack-priv static final StyleContext COLOR_CODES

A static, unmodifiable map that associates lowercase color names (keys) with their corresponding ColorCode enum constants (values).

CUSTOM_STYLE_CODESback to summary
pack-priv static final Map<String, AnsiCode> CUSTOM_STYLE_CODES
STYLE_CODESback to summary
pack-priv static final StyleContext STYLE_CODES

A static, unmodifiable map that associates lowercase style names (keys) with their corresponding StyleCode enum constants (values).

Constructor Detail

PredefinedStyleContextback to summary
private PredefinedStyleContext()

Method Detail

getback to summary
public static AnsiCode get(String s, StyleContext ctx)
getOrThrowback to summary
public static AnsiCode getOrThrow(String s, StyleContext ctx)