Class Expression
- java.lang.Object
-
- org.thymeleaf.standard.expression.Expression
-
- All Implemented Interfaces:
java.io.Serializable,IStandardExpression
- Direct Known Subclasses:
ComplexExpression,SimpleExpression
public abstract class Expression extends java.lang.Object implements IStandardExpression, java.io.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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static charNESTING_END_CHARstatic charNESTING_START_CHARstatic charPARSING_PLACEHOLDER_CHARprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedExpression()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexecute(IExpressionContext context)Execute the expression.(package private) static java.lang.Objectexecute(IExpressionContext context, Expression expression, IStandardVariableExpressionEvaluator expressionEvaluator, StandardExpressionExecutionContext expContext)java.lang.Objectexecute(IExpressionContext context, StandardExpressionExecutionContext expContext)Execute the expression.abstract java.lang.StringgetStringRepresentation()Obtain a string representation of the expression.(package private) static Expressionparse(java.lang.String input)java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
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 java.lang.String getStringRepresentation()
Description copied from interface:IStandardExpressionObtain a string representation of the expression.
- Specified by:
getStringRepresentationin interfaceIStandardExpression- Returns:
- the String representation
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parse
static Expression parse(java.lang.String input)
-
execute
static java.lang.Object execute(IExpressionContext context, Expression expression, IStandardVariableExpressionEvaluator expressionEvaluator, StandardExpressionExecutionContext expContext)
-
execute
public java.lang.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 java.lang.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.
-
-