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:
get
in interfaceStyleSource
- Parameters:
group
- the groupname
- the style name- Returns:
- the style
-
set
Non-operation.- Specified by:
set
in interfaceStyleSource
- Parameters:
group
- the groupname
- the style namestyle
- the style to set
-
remove
Non-operation.- Specified by:
remove
in interfaceStyleSource
- Parameters:
group
- the group
-
remove
Non-operation.- Specified by:
remove
in interfaceStyleSource
- Parameters:
group
- the groupname
- the style name to remove
-
clear
public void clear()Non-operation.- Specified by:
clear
in interfaceStyleSource
-
groups
Always returns empty list.- Specified by:
groups
in interfaceStyleSource
- Returns:
- Immutable collection.
-
styles
Always returns empty map.- Specified by:
styles
in interfaceStyleSource
- Parameters:
group
- the style group- Returns:
- Immutable map.
-