Class ThemeResolver

java.lang.Object
org.springframework.shell.style.ThemeResolver

public class ThemeResolver extends Object
Service which helps to do various things with styles.
  • Constructor Details

  • Method Details

    • evaluateExpression

      public org.jline.utils.AttributedString evaluateExpression(String expression)
      Evaluate expression.
      Parameters:
      expression - the expression
      Returns:
      evaluated attributed string
    • resolveStyleTag

      public String resolveStyleTag(String tag)
      Resolve style from a tag with activated theme.
      Parameters:
      tag - the tag
      Returns:
      a style
    • resolveFigureTag

      public String resolveFigureTag(String tag)
      Resolve figure from a tag with activated theme.
      Parameters:
      tag - the tag
      Returns:
      a style
    • resolveStyle

      public org.jline.utils.AttributedStyle resolveStyle(String spec)
      Resolve AttributedStyle from a spec.
      Parameters:
      spec - the spec
      Returns:
      resolved attributed style