Package org.jline.style
Class MemoryStyleSource
java.lang.Object
org.jline.style.MemoryStyleSource
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
MemoryStyleSource
public MemoryStyleSource()
-
-
Method Details
-
get
Description copied from interface:StyleSourceReturns the appropriate style for the given style-group and style-name, ornullif missing.- Specified by:
getin interfaceStyleSource- Parameters:
group- the groupname- the style name- Returns:
- the style
-
set
Description copied from interface:StyleSourceSet a specific style in a style-group.- Specified by:
setin interfaceStyleSource- Parameters:
group- the groupname- the style namestyle- the style to set
-
remove
Description copied from interface:StyleSourceRemove all styles for given style-group.- Specified by:
removein interfaceStyleSource- Parameters:
group- the group
-
remove
Description copied from interface:StyleSourceRemove a specific style from style-group.- Specified by:
removein interfaceStyleSource- Parameters:
group- the groupname- the style name to remove
-
clear
public void clear()Description copied from interface:StyleSourceClear all styles.- Specified by:
clearin interfaceStyleSource
-
groups
Description copied from interface:StyleSourceReturns configured style-group names.- Specified by:
groupsin interfaceStyleSource- Returns:
- Immutable collection.
-
styles
Description copied from interface:StyleSourceReturns configured styles for given style-group.- Specified by:
stylesin interfaceStyleSource- Parameters:
group- the style group- Returns:
- Immutable map.
-