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
Modifier and Type | Field and Description |
---|---|
static char |
NESTING_END_CHAR |
static char |
NESTING_START_CHAR |
static char |
PARSING_PLACEHOLDER_CHAR |
Modifier | Constructor and Description |
---|---|
protected |
Expression() |
Modifier and Type | Method and 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() |
public static final char PARSING_PLACEHOLDER_CHAR
public static final char NESTING_START_CHAR
public static final char NESTING_END_CHAR
public abstract String getStringRepresentation()
IStandardExpression
Obtain a string representation of the expression.
getStringRepresentation
in interface IStandardExpression
public Object execute(IExpressionContext context)
IStandardExpression
Execute the expression.
execute
in interface IStandardExpression
context
- the context object.public Object execute(IExpressionContext context, StandardExpressionExecutionContext expContext)
IStandardExpression
Execute the expression.
execute
in interface IStandardExpression
context
- the context object.expContext
- the expression execution context to be applied (preprocessing, etc.)Copyright © 2016 The THYMELEAF team. All rights reserved.