Package org.jline.utils
Class StyleResolver
java.lang.Object
org.jline.utils.StyleResolver
Resolves named (or source-referenced)
AttributedStyle
.- Since:
- 3.6
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionResolve the given style specification.Resolve the given style specification.
-
Constructor Details
-
StyleResolver
-
-
Method Details
-
resolve
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
Resolve the given style specification.If this resolves to
AttributedStyle.DEFAULT
then given default specification is used if non-null.- Parameters:
spec
- the specificationdefaultSpec
- the default specifiaction- Returns:
- the style
-