Class MessageExpression
java.lang.Object
org.thymeleaf.standard.expression.Expression
org.thymeleaf.standard.expression.SimpleExpression
org.thymeleaf.standard.expression.MessageExpression
- All Implemented Interfaces:
Serializable,IStandardExpression
Message expression (Thymeleaf Standard Expressions)
Note a class with this name existed since 1.1, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IStandardExpressionprivate static final org.slf4j.Loggerprivate static final Patternprivate static final Object[]private final ExpressionSequenceprivate static final charprivate static final char(package private) static final charprivate static final longFields inherited from class org.thymeleaf.standard.expression.SimpleExpression
EXPRESSION_END_CHAR, EXPRESSION_START_CHARFields inherited from class org.thymeleaf.standard.expression.Expression
NESTING_END_CHAR, NESTING_START_CHAR, PARSING_PLACEHOLDER_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ObjectexecuteMessageExpression(IExpressionContext context, MessageExpression expression, StandardExpressionExecutionContext expContext) getBase()Obtain a string representation of the expression.booleanprivate static ExpressionparseDefaultAsLiteral(String input) (package private) static MessageExpressionparseMessageExpression(String input) Methods inherited from class org.thymeleaf.standard.expression.SimpleExpression
executeSimple
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
serialVersionUID
private static final long serialVersionUID- See Also:
-
NO_PARAMETERS
-
SELECTOR
static final char SELECTOR- See Also:
-
PARAMS_START_CHAR
private static final char PARAMS_START_CHAR- See Also:
-
PARAMS_END_CHAR
private static final char PARAMS_END_CHAR- See Also:
-
MSG_PATTERN
-
base
-
parameters
-
-
Constructor Details
-
MessageExpression
-
-
Method Details
-
getBase
-
getParameters
-
hasParameters
public boolean hasParameters() -
getStringRepresentation
Description copied from interface:IStandardExpressionObtain a string representation of the expression.
- Specified by:
getStringRepresentationin interfaceIStandardExpression- Specified by:
getStringRepresentationin classExpression- Returns:
- the String representation
-
parseMessageExpression
-
parseDefaultAsLiteral
-
executeMessageExpression
static Object executeMessageExpression(IExpressionContext context, MessageExpression expression, StandardExpressionExecutionContext expContext)
-