Class Expression
- Object
-
- org.thymeleaf.standard.expression.Expression
-
- All Implemented Interfaces:
Serializable
,IStandardExpression
- Direct Known Subclasses:
ComplexExpression
,SimpleExpression
public abstract class Expression extends Object implements IStandardExpression, Serializable
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static char
NESTING_END_CHAR
static char
NESTING_START_CHAR
static char
PARSING_PLACEHOLDER_CHAR
-
Constructor Summary
Constructors Modifier Constructor Description protected
Expression()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
execute(IExpressionContext context)
Execute the expression.Object
execute(IExpressionContext context, StandardExpressionExecutionContext expContext)
Execute the expression.abstract String
getStringRepresentation()
Obtain a string representation of the expression.String
toString()
-
-
-
Field Detail
-
PARSING_PLACEHOLDER_CHAR
public static final char PARSING_PLACEHOLDER_CHAR
- See Also:
- Constant Field Values
-
NESTING_START_CHAR
public static final char NESTING_START_CHAR
- See Also:
- Constant Field Values
-
NESTING_END_CHAR
public static final char NESTING_END_CHAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStringRepresentation
public abstract String getStringRepresentation()
Description copied from interface:IStandardExpression
Obtain a string representation of the expression.
- Specified by:
getStringRepresentation
in interfaceIStandardExpression
- Returns:
- the String representation
-
execute
public Object execute(IExpressionContext context)
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
public Object execute(IExpressionContext context, StandardExpressionExecutionContext expContext)
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.
-
-