- java.lang.Object
-
- org.jline.style.NopStyleSource
-
- All Implemented Interfaces:
StyleSource
public class NopStyleSource extends Object implements StyleSource
StyleSource
which always returnsnull
.- Since:
- 3.4
-
-
Constructor Summary
Constructors Constructor Description NopStyleSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Non-operation.String
get(String group, String name)
Always returnsnull
.Iterable<String>
groups()
Always returns empty list.void
remove(String group)
Non-operation.void
remove(String group, String name)
Non-operation.void
set(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:
get
in 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:
set
in interfaceStyleSource
- Parameters:
group
- the groupname
- the style namestyle
- the style to set
-
remove
public void remove(String group)
Non-operation.- Specified by:
remove
in interfaceStyleSource
- Parameters:
group
- the group
-
remove
public void remove(String group, String name)
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
public Iterable<String> groups()
Always returns empty list.- Specified by:
groups
in interfaceStyleSource
- Returns:
- Immutable collection.
-
-