Class Expression
java.lang.Object
org.thymeleaf.standard.expression.Expression
- All Implemented Interfaces:
Serializable,IStandardExpression
- Direct Known Subclasses:
ComplexExpression,SimpleExpression
Base Expression class for all 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 TypeFieldDescriptionstatic final charstatic final charstatic final charprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(IExpressionContext context) Execute the expression.(package private) static Objectexecute(IExpressionContext context, Expression expression, IStandardVariableExpressionEvaluator expressionEvaluator, StandardExpressionExecutionContext expContext) execute(IExpressionContext context, StandardExpressionExecutionContext expContext) Execute the expression.abstract StringObtain a string representation of the expression.(package private) static ExpressiontoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
PARSING_PLACEHOLDER_CHAR
public static final char PARSING_PLACEHOLDER_CHAR- See Also:
-
NESTING_START_CHAR
public static final char NESTING_START_CHAR- See Also:
-
NESTING_END_CHAR
public static final char NESTING_END_CHAR- See Also:
-
-
Constructor Details
-
Expression
protected Expression()
-
-
Method Details
-
getStringRepresentation
Description copied from interface:IStandardExpressionObtain a string representation of the expression.
- Specified by:
getStringRepresentationin interfaceIStandardExpression- Returns:
- the String representation
-
toString
-
parse
-
execute
static Object execute(IExpressionContext context, Expression expression, IStandardVariableExpressionEvaluator expressionEvaluator, StandardExpressionExecutionContext expContext) -
execute
Description copied from interface:IStandardExpressionExecute the expression.
- Specified by:
executein interfaceIStandardExpression- Parameters:
context- the context object.- Returns:
- the result of executing the expression.
-
execute
Description copied from interface:IStandardExpressionExecute the expression.
- Specified by:
executein interfaceIStandardExpression- Parameters:
context- the context object.expContext- the expression execution context to be applied (preprocessing, etc.)- Returns:
- the result of executing the expression.
-