Class StringTemplateExtensions
- java.lang.Object
-
- io.quarkus.qute.runtime.extensions.StringTemplateExtensions
-
@Vetoed public class StringTemplateExtensions extends Object
-
-
Constructor Summary
Constructors Constructor Description StringTemplateExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static String
fmt(String ignoredPropertyName, String format, Object... args)
E.g.(package private) static String
fmt(String ignoredPropertyName, Locale locale, String format, Object... args)
E.g.(package private) static String
fmtInstance(String format, String ignoredPropertyName, Object... args)
E.g.(package private) static String
fmtInstance(String format, String ignoredPropertyName, Locale locale, Object... args)
E.g.(package private) static String
plus(String str, Object val)
-
-
-
Field Detail
-
STR
static final String STR
- See Also:
- Constant Field Values
-
-
Method Detail
-
fmtInstance
static String fmtInstance(String format, String ignoredPropertyName, Object... args)
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
static String fmtInstance(String format, String ignoredPropertyName, Locale locale, Object... args)
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
static String fmt(String ignoredPropertyName, String format, Object... args)
E.g. . The priority must be lower thanfmt(String, Locale, String, Object...)
.- Parameters:
ignoredPropertyName
-format
-args
-- Returns:
- the formatted value
-
fmt
static String fmt(String ignoredPropertyName, Locale locale, String format, Object... args)
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
-
-