org.thymeleaf.standard.processor.value.variable
Class StandardVariableValueProcessor

Object
  extended by org.thymeleaf.standard.processor.value.variable.StandardVariableValueProcessor
All Implemented Interfaces:
IValueProcessor, IStandardVariableValueProcessor

public class StandardVariableValueProcessor
extends Object
implements IStandardVariableValueProcessor

Since:
1.0
Author:
Daniel Fernández

Constructor Summary
StandardVariableValueProcessor(IExpressionEvaluator expressionEvaluator)
           
 
Method Summary
protected  Map<String,Object> getAdditionalContextVariables(Arguments arguments, TemplateResolution templateResolution, StandardSyntax.VarValue varValue)
           Add additional context variables.
 String getName()
           
 Set<Class<? extends IValueProcessor>> getValueProcessorDependencies()
           
 Object getVariableValue(Arguments arguments, TemplateResolution templateResolution, StandardSyntax.VarValue varValue)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardVariableValueProcessor

public StandardVariableValueProcessor(IExpressionEvaluator expressionEvaluator)
Method Detail

getName

public String getName()
Specified by:
getName in interface IValueProcessor

getValueProcessorDependencies

public Set<Class<? extends IValueProcessor>> getValueProcessorDependencies()
Specified by:
getValueProcessorDependencies in interface IValueProcessor

getVariableValue

public final Object getVariableValue(Arguments arguments,
                                     TemplateResolution templateResolution,
                                     StandardSyntax.VarValue varValue)
Specified by:
getVariableValue in interface IStandardVariableValueProcessor

getAdditionalContextVariables

protected Map<String,Object> getAdditionalContextVariables(Arguments arguments,
                                                           TemplateResolution templateResolution,
                                                           StandardSyntax.VarValue varValue)

Add additional context variables. Each expression evaluator can treat these differently, but OGNL and SpringEL will allow use of these variables like "#objectName", as with default utility objects (#strings, #arrays, etc.).

Parameters:
arguments - the execution arguments
templateResolution - the template resolution object
varValue - the value representing the expression being evaluated
Returns:
the map of additional context variables


Copyright © 2011 The THYMELEAF team. All Rights Reserved.