Package | Description |
---|---|
org.apache.logging.log4j.core.tools.picocli |
Modifier and Type | Field and Description |
---|---|
(package private) static CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.EMPTY_TEXT |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<CommandLine.Help.Ansi.Text> |
CommandLine.Help.TextTable.columnValues
The
char[] slots of the TextTable to copy text values into. |
Modifier and Type | Method and Description |
---|---|
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.append(CommandLine.Help.Ansi.Text other)
Returns a new
Text instance with the specified text appended. |
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.append(java.lang.String string)
Returns a new
Text instance with the specified text appended. |
private CommandLine.Help.Ansi.Text |
CommandLine.Help.appendOptionSynopsis(CommandLine.Help.Ansi.Text optionText,
java.lang.reflect.Field field,
java.lang.String optionName,
java.lang.String prefix,
java.lang.String suffix) |
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.TextTable.cellAt(int row,
int col)
Deprecated.
use
CommandLine.Help.TextTable.textAt(int, int) instead |
CommandLine.Help.Ansi.Text |
CommandLine.Help.ColorScheme.commandText(java.lang.String command)
Returns a Text with all command styles applied to the specified command string.
|
private CommandLine.Help.Ansi.Text |
CommandLine.Help.DefaultOptionRenderer.createLongOptionText(java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer renderer,
CommandLine.Help.ColorScheme scheme,
java.lang.String longOption) |
CommandLine.Help.Ansi.Text |
CommandLine.Help.ColorScheme.optionParamText(java.lang.String optionParam)
Returns a Text with all optionParam styles applied to the specified optionParam string.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.ColorScheme.optionText(java.lang.String option)
Returns a Text with all option styles applied to the specified option string.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.ColorScheme.parameterText(java.lang.String parameter)
Returns a Text with all parameter styles applied to the specified parameter string.
|
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.IOptionRenderer.render(CommandLine.Option option,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme)
Returns a text representation of the specified Option and the Field that captures the option value.
|
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.DefaultOptionRenderer.render(CommandLine.Option option,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer paramLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.MinimalOptionRenderer.render(CommandLine.Option option,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.MinimalParameterRenderer.render(CommandLine.Parameters param,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.IParameterRenderer.render(CommandLine.Parameters parameters,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme)
Returns a text representation of the specified Parameters and the Field that captures the parameter values.
|
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.DefaultParameterRenderer.render(CommandLine.Parameters params,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer paramLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
private CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.DefaultOptionRenderer.renderDescriptionLines(CommandLine.Option option,
CommandLine.Help.ColorScheme scheme,
java.lang.String requiredOption,
java.lang.String shortOption,
CommandLine.Help.Ansi.Text longOptionText,
java.lang.Object defaultValue) |
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) |
CommandLine.Help.Ansi.Text[] |
CommandLine.Help.Ansi.Text.splitLines() |
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.substring(int start)
Returns a new
Text instance that is a substring of this Text. |
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.substring(int start,
int end)
Returns a new
Text instance that is a substring of this Text. |
CommandLine.Help.Ansi.Text |
CommandLine.Help.TextTable.textAt(int row,
int col)
Returns the
Text slot at the specified row and column to write a text value into. |
Modifier and Type | Method and Description |
---|---|
void |
CommandLine.Help.TextTable.addRowValues(CommandLine.Help.Ansi.Text... values)
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.append(CommandLine.Help.Ansi.Text other)
Returns a new
Text instance with the specified text appended. |
private CommandLine.Help.Ansi.Text |
CommandLine.Help.appendOptionSynopsis(CommandLine.Help.Ansi.Text optionText,
java.lang.reflect.Field field,
java.lang.String optionName,
java.lang.String prefix,
java.lang.String suffix) |
private int |
CommandLine.Help.TextTable.copy(java.text.BreakIterator line,
CommandLine.Help.Ansi.Text text,
CommandLine.Help.Ansi.Text columnValue,
int offset) |
private static int |
CommandLine.Help.TextTable.copy(CommandLine.Help.Ansi.Text value,
CommandLine.Help.Ansi.Text destination,
int offset) |
private static boolean |
CommandLine.empty(CommandLine.Help.Ansi.Text txt) |
void |
CommandLine.Help.Ansi.Text.getStyledChars(int from,
int length,
CommandLine.Help.Ansi.Text destination,
int offset)
Copies the specified substring of this Text into the specified destination, preserving the markup.
|
void |
CommandLine.Help.Layout.layout(java.lang.reflect.Field field,
CommandLine.Help.Ansi.Text[][] cellValues)
Copies the specified text values into the correct cells in the
CommandLine.Help.TextTable . |
private static int |
CommandLine.Help.TextTable.length(CommandLine.Help.Ansi.Text str) |
CommandLine.Help.TextTable.Cell |
CommandLine.Help.TextTable.putValue(int row,
int col,
CommandLine.Help.Ansi.Text value)
Writes the specified value into the cell at the specified row and column and returns the last row and
column written to.
|
private CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.DefaultOptionRenderer.renderDescriptionLines(CommandLine.Option option,
CommandLine.Help.ColorScheme scheme,
java.lang.String requiredOption,
java.lang.String shortOption,
CommandLine.Help.Ansi.Text longOptionText,
java.lang.Object defaultValue) |