Class Expression
-
- org.thymeleaf.standard.expression.Expression
-
- All Implemented Interfaces:
,
IStandardExpression
- Direct Known Subclasses:
ComplexExpression
,SimpleExpression
public abstract class Expression extends implements
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 execute(IExpressionContext context)
Execute the expression.execute(IExpressionContext context, StandardExpressionExecutionContext expContext)
Execute the expression.abstract
getStringRepresentation()
Obtain a string representation of the expression.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 getStringRepresentation()
Description copied from interface:IStandardExpression
Obtain a string representation of the expression.
- Specified by:
getStringRepresentation
in interfaceIStandardExpression
- Returns:
- the String representation
-
toString
public toString()
- Overrides:
in class
-
execute
public 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 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.
-
-