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
-
Method Summary
Modifier and TypeMethodDescriptionorg.jline.utils.AttributedString
evaluateExpression
(String expression) Evaluate expression.resolveFigureTag
(String tag) Resolve figure from a tag with activated theme.org.jline.utils.AttributedStyle
resolveStyle
(String spec) ResolveAttributedStyle
from 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
ResolveAttributedStyle
from aspec
.- Parameters:
spec
- the spec- Returns:
- resolved attributed style
-