Package | Description |
---|---|
org.apache.logging.log4j.core.tools.picocli |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CommandLine.Help.Ansi.Palette256Color
Defines a palette map of 216 colors: 6 * 6 * 6 cube (216 colors):
16 + 36 * r + 6 * g + b (0 <= r, g, b <= 5).
|
static class |
CommandLine.Help.Ansi.Style
A set of pre-defined ANSI escape code styles and colors, and a set of convenience methods for parsing
text with embedded markup style names, as well as convenience methods for converting
styles to strings with embedded escape codes.
|
Modifier and Type | Field and Description |
---|---|
java.util.List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.commandStyles |
java.util.List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.optionParamStyles |
java.util.List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.optionStyles |
java.util.List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.parameterStyles |
Modifier and Type | Method and Description |
---|---|
static CommandLine.Help.Ansi.IStyle |
CommandLine.Help.Ansi.Style.bg(java.lang.String str)
Parses the specified style markup and returns the associated style.
|
static CommandLine.Help.Ansi.IStyle |
CommandLine.Help.Ansi.Style.fg(java.lang.String str)
Parses the specified style markup and returns the associated style.
|
static CommandLine.Help.Ansi.IStyle[] |
CommandLine.Help.Ansi.Style.parse(java.lang.String commaSeparatedCodes)
Parses the specified comma-separated sequence of style descriptors and returns the associated
styles.
|
Modifier and Type | Method and Description |
---|---|
private CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.addAll(java.util.List<CommandLine.Help.Ansi.IStyle> styles,
CommandLine.Help.Ansi.IStyle... add) |
CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.commands(CommandLine.Help.Ansi.IStyle... styles)
Adds the specified styles to the registered styles for commands in this color scheme and returns this color scheme.
|
static java.lang.String |
CommandLine.Help.Ansi.Style.off(CommandLine.Help.Ansi.IStyle... styles)
Returns the concatenated ANSI escape codes for turning all specified styles off.
|
static java.lang.String |
CommandLine.Help.Ansi.Style.on(CommandLine.Help.Ansi.IStyle... styles)
Returns the concatenated ANSI escape codes for turning all specified styles on.
|
CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.optionParams(CommandLine.Help.Ansi.IStyle... styles)
Adds the specified styles to the registered styles for option parameters in this color scheme and returns this color scheme.
|
CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.options(CommandLine.Help.Ansi.IStyle... styles)
Adds the specified styles to the registered styles for options in this color scheme and returns this color scheme.
|
CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.parameters(CommandLine.Help.Ansi.IStyle... styles)
Adds the specified styles to the registered styles for positional parameters in this color scheme and returns this color scheme.
|
Modifier and Type | Method and Description |
---|---|
private CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.addAll(java.util.List<CommandLine.Help.Ansi.IStyle> styles,
CommandLine.Help.Ansi.IStyle... add) |
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.apply(java.lang.String plainText,
java.util.List<CommandLine.Help.Ansi.IStyle> styles)
Returns a new Text object where all the specified styles are applied to the full length of the
specified plain text.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.IParamLabelRenderer.renderParameterLabel(java.lang.reflect.Field field,
CommandLine.Help.Ansi ansi,
java.util.List<CommandLine.Help.Ansi.IStyle> styles)
Returns a text rendering of the Option parameter or positional parameter; returns an empty string
"" if the option is a boolean and does not take a parameter. |
CommandLine.Help.Ansi.Text |
CommandLine.Help.DefaultParamLabelRenderer.renderParameterLabel(java.lang.reflect.Field field,
CommandLine.Help.Ansi ansi,
java.util.List<CommandLine.Help.Ansi.IStyle> styles) |
private void |
CommandLine.Help.ColorScheme.replace(java.util.List<CommandLine.Help.Ansi.IStyle> styles,
java.lang.String property) |