Package org.jline.style
Class StyleFactory
java.lang.Object
org.jline.style.StyleFactory
Factory to create styled strings.
- Since:
- 3.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jline.utils.AttributedStringEvaluate a style expression.org.jline.utils.AttributedStringEvaluate a style expression with format.org.jline.utils.AttributedStringEncode string with style applying value.org.jline.utils.AttributedStringEncode string with style formatted value.
-
Constructor Details
-
StyleFactory
-
-
Method Details
-
style
Encode string with style applying value.- Parameters:
style- the stylevalue- the value- Returns:
- the result string
-
style
Encode string with style formatted value.- Parameters:
style- the styleformat- the formatparams- the parameters- Returns:
- the result string
- See Also:
-
evaluate
Evaluate a style expression.- Parameters:
expression- the expression to evaluate- Returns:
- the result string
-
evaluate
Evaluate a style expression with format.- Parameters:
format- the formatparams- the parameters- Returns:
- the result string
- See Also:
-