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 TypeMethodDescriptionvoid
clear()
Clear all styles.Returns the appropriate style for the given style-group and style-name, ornull
if missing.groups()
Returns configured style-group names.void
Remove all styles for given style-group.void
Remove a specific style from style-group.void
Set 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, ornull
if 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.
-