Package io.quarkus.qute
Interface ResultMapper
- All Superinterfaces:
WithPriority
- All Known Implementing Classes:
HtmlEscaper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This component can be used to map a result of an evaluated value expression to a string value.
The first result mapper that applies to the result object is used. The mapper with higher priority wins.
-
Field Summary
Fields inherited from interface io.quarkus.qute.WithPriority
DEFAULT_PRIORITY -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanappliesTo(TemplateNode.Origin origin, Object result) map(Object result, Expression expression) Methods inherited from interface io.quarkus.qute.WithPriority
getPriority
-
Method Details
-
appliesTo
- Parameters:
origin-result-- Returns:
trueif this mapper applies to the given result
-
map
- Parameters:
result-expression- The original expression- Returns:
- the string value
-