Package org.jline.style
Annotation Type StyleBundle.StyleName
-
@Retention(RUNTIME) @Target(METHOD) @Documented public static @interface StyleBundle.StyleName
Annotation that allows overriding the style name for a method in a StyleBundle interface.By default, the style name used for a method is the method name itself. This annotation allows specifying a different name to use when looking up styles in a
StyleSource
.Example:
@StyleBundle.StyleGroup("mygroup") interface MyStyles extends StyleBundle { @StyleBundle.StyleName("error-style") @StyleBundle.DefaultStyle("bold,fg:red") AttributedString error(String message); }
In this example, the style name "error-style" will be used instead of "error" when looking up the style in the style source.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
-