private void replace(List<IStyle> styles, String property) { if (property != null) { styles.clear(); addAll(styles, Style.parse(property)); } } private ColorScheme addAll(List<IStyle> styles, IStyle... add) {
private void replace(List<IStyle> styles, String property) { if (property != null) { styles.clear(); addAll(styles, Style.parse(property)); } } private ColorScheme addAll(List<IStyle> styles, IStyle... add) {
/** Adds the specified styles to the registered styles for option parameters in this color scheme and returns this color scheme. * @param styles the styles to add to the registered styles for option parameters in this color scheme * @return this color scheme to enable method chaining for a more fluent API */ public ColorScheme optionParams(IStyle... styles) { return addAll(optionParamStyles, styles);} /** Returns a Text with all command styles applied to the specified command string.
/** Adds the specified styles to the registered styles for positional parameters in this color scheme and returns this color scheme. * @param styles the styles to add to registered the styles for parameters in this color scheme * @return this color scheme to enable method chaining for a more fluent API */ public ColorScheme parameters(IStyle... styles) { return addAll(parameterStyles, styles);} /** Adds the specified styles to the registered styles for option parameters in this color scheme and returns this color scheme.
/** Adds the specified styles to the registered styles for options in this color scheme and returns this color scheme. * @param styles the styles to add to registered the styles for options in this color scheme * @return this color scheme to enable method chaining for a more fluent API */ public ColorScheme options(IStyle... styles) { return addAll(optionStyles, styles);} /** Adds the specified styles to the registered styles for positional parameters in this color scheme and returns this color scheme.
/** Adds the specified styles to the registered styles for commands in this color scheme and returns this color scheme. * @param styles the styles to add to the registered styles for commands in this color scheme * @return this color scheme to enable method chaining for a more fluent API */ public ColorScheme commands(IStyle... styles) { return addAll(commandStyles, styles); } /** Adds the specified styles to the registered styles for options in this color scheme and returns this color scheme.
/** Adds the specified styles to the registered styles for option parameters in this color scheme and returns this color scheme. * @param styles the styles to add to the registered styles for option parameters in this color scheme * @return this color scheme to enable method chaining for a more fluent API */ public ColorScheme optionParams(IStyle... styles) { return addAll(optionParamStyles, styles);} /** Returns a Text with all command styles applied to the specified command string.
/** Adds the specified styles to the registered styles for positional parameters in this color scheme and returns this color scheme. * @param styles the styles to add to registered the styles for parameters in this color scheme * @return this color scheme to enable method chaining for a more fluent API */ public ColorScheme parameters(IStyle... styles) { return addAll(parameterStyles, styles);} /** Adds the specified styles to the registered styles for option parameters in this color scheme and returns this color scheme.
/** Adds the specified styles to the registered styles for options in this color scheme and returns this color scheme. * @param styles the styles to add to registered the styles for options in this color scheme * @return this color scheme to enable method chaining for a more fluent API */ public ColorScheme options(IStyle... styles) { return addAll(optionStyles, styles);} /** Adds the specified styles to the registered styles for positional parameters in this color scheme and returns this color scheme.
/** Adds the specified styles to the registered styles for commands in this color scheme and returns this color scheme. * @param styles the styles to add to the registered styles for commands in this color scheme * @return this color scheme to enable method chaining for a more fluent API */ public ColorScheme commands(IStyle... styles) { return addAll(commandStyles, styles); } /** Adds the specified styles to the registered styles for options in this color scheme and returns this color scheme.