Package org.jline.style
Class NopStyleSource
java.lang.Object
org.jline.style.NopStyleSource
- All Implemented Interfaces:
StyleSource
StyleSource which always returns null.- Since:
- 3.4
-
Constructor Details
-
NopStyleSource
public NopStyleSource()
-
-
Method Details
-
get
Always returnsnull.- Specified by:
getin interfaceStyleSource- Parameters:
group- the groupname- the style name- Returns:
- the style
-
set
Non-operation.- Specified by:
setin interfaceStyleSource- Parameters:
group- the groupname- the style namestyle- the style to set
-
remove
Non-operation.- Specified by:
removein interfaceStyleSource- Parameters:
group- the group
-
remove
Non-operation.- Specified by:
removein interfaceStyleSource- Parameters:
group- the groupname- the style name to remove
-
clear
public void clear()Non-operation.- Specified by:
clearin interfaceStyleSource
-
groups
Always returns empty list.- Specified by:
groupsin interfaceStyleSource- Returns:
- Immutable collection.
-
styles
Always returns empty map.- Specified by:
stylesin interfaceStyleSource- Parameters:
group- the style group- Returns:
- Immutable map.
-