Package org.springframework.shell.style
Class ThemeResolver
java.lang.Object
org.springframework.shell.style.ThemeResolver
Service which helps to do various things with styles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jline.utils.AttributedStringevaluateExpression(String expression) Evaluate expression.resolveFigureTag(String tag) Resolve figure from a tag with activated theme.org.jline.utils.AttributedStyleresolveStyle(String spec) ResolveAttributedStylefrom aspec.resolveStyleTag(String tag) Resolve style from a tag with activated theme.
-
Constructor Details
-
ThemeResolver
-
-
Method Details
-
evaluateExpression
Evaluate expression.- Parameters:
expression- the expression- Returns:
- evaluated attributed string
-
resolveStyleTag
Resolve style from a tag with activated theme.- Parameters:
tag- the tag- Returns:
- a style
-
resolveFigureTag
Resolve figure from a tag with activated theme.- Parameters:
tag- the tag- Returns:
- a style
-
resolveStyle
ResolveAttributedStylefrom aspec.- Parameters:
spec- the spec- Returns:
- resolved attributed style
-