Class NopStyleSource

java.lang.Object
org.jline.style.NopStyleSource
All Implemented Interfaces:
StyleSource

public class NopStyleSource extends Object implements StyleSource
StyleSource which always returns null.
Since:
3.4
  • Constructor Details

    • NopStyleSource

      public NopStyleSource()
  • Method Details

    • get

      @Nullable public String get(String group, String name)
      Always returns null.
      Specified by:
      get in interface StyleSource
      Parameters:
      group - the group
      name - the style name
      Returns:
      the style
    • set

      public void set(String group, String name, String style)
      Non-operation.
      Specified by:
      set in interface StyleSource
      Parameters:
      group - the group
      name - the style name
      style - the style to set
    • remove

      public void remove(String group)
      Non-operation.
      Specified by:
      remove in interface StyleSource
      Parameters:
      group - the group
    • remove

      public void remove(String group, String name)
      Non-operation.
      Specified by:
      remove in interface StyleSource
      Parameters:
      group - the group
      name - the style name to remove
    • clear

      public void clear()
      Non-operation.
      Specified by:
      clear in interface StyleSource
    • groups

      public Iterable<String> groups()
      Always returns empty list.
      Specified by:
      groups in interface StyleSource
      Returns:
      Immutable collection.
    • styles

      public Map<String,String> styles(String group)
      Always returns empty map.
      Specified by:
      styles in interface StyleSource
      Parameters:
      group - the style group
      Returns:
      Immutable map.