Class StyleExpression

java.lang.Object
org.jline.style.StyleExpression

public class StyleExpression extends Object
Provides evaluation of style expressions in the format @{style value}.

This class allows embedding styled text within regular strings using a special syntax. Style expressions are enclosed in @{...} delimiters, where the first part specifies the style and the rest is the text to be styled.

Style expressions can be nested and combined with regular text. The style specification can be a direct style specification or a reference to a named style in a StyleSource.

Examples of style expressions:

 "Normal text with @{bold,fg:red important} parts"
 "@{bold Header}: @{fg:blue Value}"
 "@{.error Error message}" (references a named style "error")
 
Since:
3.4
See Also: