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 charNESTING_END_CHARstatic charNESTING_START_CHARstatic charPARSING_PLACEHOLDER_CHAR
-
Constructor Summary
Constructors Modifier Constructor Description protectedExpression()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Objectexecute(IExpressionContext context)Execute the expression.Objectexecute(IExpressionContext context, StandardExpressionExecutionContext expContext)Execute the expression.abstract StringgetStringRepresentation()Obtain a string representation of the expression.StringtoString()
-
-
-
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:IStandardExpressionObtain a string representation of the expression.
- Specified by:
getStringRepresentationin interfaceIStandardExpression- Returns:
- the String representation
-
execute
public Object execute(IExpressionContext context)
Description copied from interface:IStandardExpressionExecute the expression.
- Specified by:
executein 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: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.
-
-