|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.context.AbstractProcessingContext
public abstract class AbstractProcessingContext
Field Summary | |
---|---|
protected static String |
EVAL_SELECTION_TARGET_LOCAL_VARIABLE_NAME
|
Constructor Summary | |
---|---|
protected |
AbstractProcessingContext(IContext context)
|
protected |
AbstractProcessingContext(IContext context,
Map<String,Object> localVariables)
|
protected |
AbstractProcessingContext(IContext context,
Map<String,Object> localVariables,
Object selectionTarget,
boolean selectionTargetSet)
|
Method Summary | |
---|---|
protected Map<String,Object> |
computeExpressionObjects()
|
IContext |
getContext()
Returns the current context specified for template processing. |
Object |
getExpressionEvaluationRoot()
Returns the current evaluation root. |
Map<String,Object> |
getExpressionObjects()
Returns the map of expression objects that should be made available to every expression evaluation operation (whenever variable evaluation is available). |
Object |
getExpressionSelectionEvaluationRoot()
Returns the current selection evaluation root. |
Object |
getLocalVariable(String variableName)
Returns the value of a local variable. |
Map<String,Object> |
getLocalVariables()
Returns the map of local variables. |
Object |
getSelectionTarget()
Returns the selection target object, and raises an exception if there isn't any. |
boolean |
hasLocalVariable(String variableName)
Returns whether a specific local variable is defined or not. |
boolean |
hasLocalVariables()
Returns whether local variables have currently been specified or not. |
boolean |
hasSelectionTarget()
Returns whether there currently is a selection going on (e.g. |
protected Map<String,Object> |
mergeNewLocalVariables(Map<String,Object> newVariables)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String EVAL_SELECTION_TARGET_LOCAL_VARIABLE_NAME
Constructor Detail |
---|
protected AbstractProcessingContext(IContext context)
protected AbstractProcessingContext(IContext context, Map<String,Object> localVariables)
protected AbstractProcessingContext(IContext context, Map<String,Object> localVariables, Object selectionTarget, boolean selectionTargetSet)
Method Detail |
---|
protected Map<String,Object> computeExpressionObjects()
public Map<String,Object> getExpressionObjects()
IProcessingContext
Returns the map of expression objects that should be made available to every expression evaluation operation (whenever variable evaluation is available). In OGNL and SpringEL expressions, these will be available as #object1, #object2, etc.
This method cannot return null, and must return a modifiable Map object (which will, in fact, be modified).
getExpressionObjects
in interface IProcessingContext
public IContext getContext()
IProcessingContext
Returns the current context specified for template processing.
getContext
in interface IProcessingContext
public Object getExpressionEvaluationRoot()
IProcessingContext
Returns the current evaluation root. This is the object on which expressions (normal expressions, like those specified in the standard dialect with ${...}) are executed.
getExpressionEvaluationRoot
in interface IProcessingContext
public Object getExpressionSelectionEvaluationRoot()
IProcessingContext
Returns the current selection evaluation root. This is the object on which selection expressions (like those specified in the standard dialect with *{...}) are executed.
getExpressionSelectionEvaluationRoot
in interface IProcessingContext
public boolean hasSelectionTarget()
IProcessingContext
Returns whether there currently is a selection going on (e.g. th:object in standard dialect).
hasSelectionTarget
in interface IProcessingContext
public Object getSelectionTarget()
IProcessingContext
Returns the selection target object, and raises an exception if there isn't any.
Meant for internal use.
getSelectionTarget
in interface IProcessingContext
public boolean hasLocalVariables()
IProcessingContext
Returns whether local variables have currently been specified or not. (e.g. th:with in standard dialect).
hasLocalVariables
in interface IProcessingContext
public boolean hasLocalVariable(String variableName)
IProcessingContext
Returns whether a specific local variable is defined or not.
hasLocalVariable
in interface IProcessingContext
public Object getLocalVariable(String variableName)
IProcessingContext
Returns the value of a local variable.
getLocalVariable
in interface IProcessingContext
variableName
- the name of the local variable to be returned
public Map<String,Object> getLocalVariables()
IProcessingContext
Returns the map of local variables.
getLocalVariables
in interface IProcessingContext
protected Map<String,Object> mergeNewLocalVariables(Map<String,Object> newVariables)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |