Class TemplateExecutor
java.lang.Object
org.springframework.shell.jline.tui.style.TemplateExecutor
Template executor which knows to use styling.
- Author:
- Janne Valkealahti, Piotr Olaszewski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jline.utils.AttributedStringRender template with a given attributes.org.jline.utils.AttributedStringrenderGroup(String template, Map<String, @Nullable Object> attributes) Render template group with a given attributes expecting to find instance namedmain.
-
Constructor Details
-
TemplateExecutor
-
-
Method Details
-
render
public org.jline.utils.AttributedString render(String template, Map<String, @Nullable Object> attributes) Render template with a given attributes.- Parameters:
template- the ST templateattributes- the ST template attributes- Returns:
- a rendered template
-
renderGroup
public org.jline.utils.AttributedString renderGroup(String template, Map<String, @Nullable Object> attributes) Render template group with a given attributes expecting to find instance namedmain.- Parameters:
template- the ST templateattributes- the ST template attributes- Returns:
- a rendered template
-