Package org.jline.style
Class NopStyleSource
- java.lang.Object
-
- org.jline.style.NopStyleSource
-
- All Implemented Interfaces:
StyleSource
public class NopStyleSource extends java.lang.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.java.lang.String
get(java.lang.String group, java.lang.String name)
Always returnsnull
.java.lang.Iterable<java.lang.String>
groups()
Always returns empty list.void
remove(java.lang.String group)
Non-operation.void
remove(java.lang.String group, java.lang.String name)
Non-operation.void
set(java.lang.String group, java.lang.String name, java.lang.String style)
Non-operation.java.util.Map<java.lang.String,java.lang.String>
styles(java.lang.String group)
Always returns empty map.
-
-
-
Method Detail
-
get
@Nullable public java.lang.String get(java.lang.String group, java.lang.String name)
Always returnsnull
.- Specified by:
get
in interfaceStyleSource
- Parameters:
group
- the groupname
- the style name- Returns:
- the style
-
set
public void set(java.lang.String group, java.lang.String name, java.lang.String style)
Non-operation.- Specified by:
set
in interfaceStyleSource
- Parameters:
group
- the groupname
- the style namestyle
- the style to set
-
remove
public void remove(java.lang.String group)
Non-operation.- Specified by:
remove
in interfaceStyleSource
- Parameters:
group
- the group
-
remove
public void remove(java.lang.String group, java.lang.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 java.lang.Iterable<java.lang.String> groups()
Always returns empty list.- Specified by:
groups
in interfaceStyleSource
- Returns:
- Immutable collection.
-
styles
public java.util.Map<java.lang.String,java.lang.String> styles(java.lang.String group)
Always returns empty map.- Specified by:
styles
in interfaceStyleSource
- Parameters:
group
- the style group- Returns:
- Immutable map.
-
-