- java.lang.Object
-
- org.jline.style.NopStyleSource
-
- All Implemented Interfaces:
StyleSource
public class NopStyleSource extends Object implements StyleSource
StyleSourcewhich always returnsnull.- Since:
- 3.4
-
-
Constructor Summary
Constructors Constructor Description NopStyleSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Non-operation.Stringget(String group, String name)Always returnsnull.Iterable<String>groups()Always returns empty list.voidremove(String group)Non-operation.voidremove(String group, String name)Non-operation.voidset(String group, String name, String style)Non-operation.Map<String,String>styles(String group)Always returns empty map.
-
-
-
Method Detail
-
get
@Nullable public String get(String group, String name)
Always returnsnull.- Specified by:
getin interfaceStyleSource- Parameters:
group- the groupname- the style name- Returns:
- the style
-
set
public void set(String group, String name, String style)
Non-operation.- Specified by:
setin interfaceStyleSource- Parameters:
group- the groupname- the style namestyle- the style to set
-
remove
public void remove(String group)
Non-operation.- Specified by:
removein interfaceStyleSource- Parameters:
group- the group
-
remove
public void remove(String group, String name)
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
public Iterable<String> groups()
Always returns empty list.- Specified by:
groupsin interfaceStyleSource- Returns:
- Immutable collection.
-
-