Interface IStandardExpression
- All Known Implementing Classes:
AdditionExpression
,AdditionSubtractionExpression
,AndExpression
,BinaryOperationExpression
,BooleanTokenExpression
,ComplexExpression
,ConditionalExpression
,DefaultExpression
,DivisionExpression
,EqualsExpression
,EqualsNotEqualsExpression
,Expression
,FragmentExpression
,GenericTokenExpression
,GreaterLesserExpression
,GreaterOrEqualToExpression
,GreaterThanExpression
,LessOrEqualToExpression
,LessThanExpression
,LinkExpression
,MessageExpression
,MinusExpression
,MultiplicationDivisionRemainderExpression
,MultiplicationExpression
,NegationExpression
,NoOpTokenExpression
,NotEqualsExpression
,NullTokenExpression
,NumberTokenExpression
,OrExpression
,RemainderExpression
,SelectionVariableExpression
,SimpleExpression
,SubtractionExpression
,TextLiteralExpression
,Token
,VariableExpression
public interface IStandardExpression
Common interface for all Thymeleaf Standard Expression objects.
Objects implementing this inteface are obtained by calling the parsing methods in
parser objects (implementations of IStandardExpressionParser
).
Default implementation (used by most of the Thymeleaf core): Expression
.
Note a class with this name existed since 2.1.0, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(IExpressionContext context) Execute the expression.execute
(IExpressionContext context, StandardExpressionExecutionContext expContext) Execute the expression.Obtain a string representation of the expression.
-
Method Details
-
getStringRepresentation
String getStringRepresentation()Obtain a string representation of the expression.
- Returns:
- the String representation
-
execute
Execute the expression.
- Parameters:
context
- the context object.- Returns:
- the result of executing the expression.
-
execute
Execute the expression.
- Parameters:
context
- the context object.expContext
- the expression execution context to be applied (preprocessing, etc.)- Returns:
- the result of executing the expression.
-