Module org.jline

Class StyleResolver

    • Method Detail

      • resolve

        public AttributedStyle resolve​(String spec)
        Resolve the given style specification.

        If for some reason the specification is invalid, then AttributedStyle.DEFAULT will be used.

        Parameters:
        spec - the specification
        Returns:
        the style
      • resolve

        public AttributedStyle resolve​(String spec,
                                       String defaultSpec)
        Resolve the given style specification.

        If this resolves to AttributedStyle.DEFAULT then given default specification is used if non-null.

        Parameters:
        spec - the specification
        defaultSpec - the default specifiaction
        Returns:
        the style