Class Expression
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
- Author:
- Daniel Fernández
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final char
static final char
static final char
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(IExpressionContext context) Execute the expression.execute
(IExpressionContext context, StandardExpressionExecutionContext expContext) Execute the expression.abstract String
Obtain a string representation of the expression.toString()
-
Field Details
-
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:IStandardExpression
Obtain a string representation of the expression.
- Specified by:
getStringRepresentation
in interfaceIStandardExpression
- Returns:
- the String representation
-
toString
-
execute
Description copied from interface:IStandardExpression
Execute the expression.
- Specified by:
execute
in interfaceIStandardExpression
- Parameters:
context
- the context object.- Returns:
- the result of executing the expression.
-
execute
Description copied from interface:IStandardExpression
Execute the expression.
- Specified by:
execute
in interfaceIStandardExpression
- Parameters:
context
- the context object.expContext
- the expression execution context to be applied (preprocessing, etc.)- Returns:
- the result of executing the expression.
-