Package org.jline.style
Interface StyleSource
- All Known Implementing Classes:
MemoryStyleSource,NopStyleSource
public interface StyleSource
Provides the source of style configuration.
- Since:
- 3.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all styles.Returns the appropriate style for the given style-group and style-name, ornullif missing.groups()Returns configured style-group names.voidRemove all styles for given style-group.voidRemove a specific style from style-group.voidSet a specific style in a style-group.Returns configured styles for given style-group.
-
Method Details
-
get
Returns the appropriate style for the given style-group and style-name, ornullif missing.- Parameters:
group- the groupname- the style name- Returns:
- the style
-
set
Set a specific style in a style-group.- Parameters:
group- the groupname- the style namestyle- the style to set
-
remove
Remove all styles for given style-group.- Parameters:
group- the group
-
remove
Remove a specific style from style-group.- Parameters:
group- the groupname- the style name to remove
-
clear
void clear()Clear all styles. -
groups
Returns configured style-group names.- Returns:
- Immutable collection.
-
styles
Returns configured styles for given style-group.- Parameters:
group- the style group- Returns:
- Immutable map.
-