Class StringTemplateExtensions
java.lang.Object
io.quarkus.qute.runtime.extensions.StringTemplateExtensions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static StringBuilderbuilder()E.g.(package private) static StringBuilderE.g.(package private) static StringE.g.(package private) static StringE.g.(package private) static StringE.g.(package private) static StringfmtInstance(String format, String ignoredPropertyName, Object... args) E.g.(package private) static StringfmtInstance(String format, String ignoredPropertyName, Locale locale, Object... args) E.g.(package private) static StringE.g.(package private) static StringBuilderplus(StringBuilder builder, Object val) (package private) static String(package private) static StringE.g.
-
Field Details
-
STR
- See Also:
-
-
Constructor Details
-
StringTemplateExtensions
public StringTemplateExtensions()
-
-
Method Details
-
fmtInstance
E.g.strVal.fmt(name,surname). The priority must be lower thanfmtInstance(String, String, Locale, Object...).- Parameters:
format-ignoredPropertyName-args-- Returns:
- the formatted value
-
fmtInstance
E.g.strVal.format(locale,name). The priority must be higher thanfmtInstance(String, String, Object...).- Parameters:
format-ignoredPropertyName-locale-args-- Returns:
- the formatted value
-
fmt
E.g. . The priority must be lower thanfmt(String, Locale, String, Object...).- Parameters:
ignoredPropertyName-format-args-- Returns:
- the formatted value
-
fmt
E.g.str:fmt(locale,"Hello %s",name). The priority must be higher thanfmt(String, String, Object...).- Parameters:
ignoredPropertyName-locale-format-args-- Returns:
- the formatted value
-
plus
-
concat
E.g.str:concat("Hello ",name). The priority must be lower thanfmt(String, String, Object...).- Parameters:
args-
-
join
E.g.str:join("_", "Hello",name). The priority must be lower thanconcat(Object...).- Parameters:
delimiter-args-
-
builder
E.g.str:builder. The priority must be lower thanjoin(String, Object...). -
builder
E.g.str:builder('Hello'). The priority must be lower thanbuilder(). -
self
E.g.str:['Foo and bar']. The priority must be lower than any otherstr:resolver.- Parameters:
name-
-
plus
-