org.thymeleaf.standard.expression
Interface IStandardVariableExpressionEvaluator

All Known Implementing Classes:
OgnlVariableExpressionEvaluator

public interface IStandardVariableExpressionEvaluator

Common interface for all objects in charge of executing variable expressions (${...}) inside Thymeleaf Standard Expressions.

The basic implementation of this interface evaluates expressions using OGNL OgnlVariableExpressionEvaluator, but a SpringEL version also exists in the Thymeleaf + Spring integration package.

Implementations of this interface should be thread-safe.

Since:
2.0.9
Author:
Daniel Fernández

Method Summary
 Object evaluate(Configuration configuration, IProcessingContext processingContext, String expression, StandardExpressionExecutionContext expContext, boolean useSelectionAsRoot)
           Evaluate the variable expression.
 

Method Detail

evaluate

Object evaluate(Configuration configuration,
                IProcessingContext processingContext,
                String expression,
                StandardExpressionExecutionContext expContext,
                boolean useSelectionAsRoot)

Evaluate the variable expression.

Parameters:
configuration - the Configuration object for the template execution environment.
processingContext - the processing context object containing the variables to be applied to the expression.
expression - the expression to be evaluated (as a String).
expContext - the expression execution context to be applied (preprocessing, etc.)
useSelectionAsRoot - specify whether this is a variable expression (${...}, false) or a selection variable expression (*{...}, true).
Returns:
the result of evaluating the expression.


Copyright © 2013 The THYMELEAF team. All Rights Reserved.