Module org.jline

Interface StyleSource

    • Method Detail

      • get

        @Nullable
        String get​(String group,
                   String name)
        Returns the appropriate style for the given style-group and style-name, or null if missing.
        Parameters:
        group - the group
        name - the style name
        Returns:
        the style
      • set

        void set​(String group,
                 String name,
                 String style)
        Set a specific style in a style-group.
        Parameters:
        group - the group
        name - the style name
        style - the style to set
      • remove

        void remove​(String group)
        Remove all styles for given style-group.
        Parameters:
        group - the group
      • remove

        void remove​(String group,
                    String name)
        Remove a specific style from style-group.
        Parameters:
        group - the group
        name - the style name to remove
      • clear

        void clear()
        Clear all styles.
      • groups

        Iterable<String> groups()
        Returns configured style-group names.
        Returns:
        Immutable collection.
      • styles

        Map<String,​String> styles​(String group)
        Returns configured styles for given style-group.
        Parameters:
        group - the style group
        Returns:
        Immutable map.