|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.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> |
computeBaseContextVariables()
|
Map<String,Object> |
getBaseContextVariables()
Returns the map of base variables that should be made available to every expression evaluation operation (whenever variable evaluation is available). |
IContext |
getContext()
Returns the current context specified for template processing. |
Object |
getExpressionEvaluationRoot()
Returns the current evaluation root. |
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)
|
HashMap<String,Object> |
unsafeGetLocalVariables()
Deprecated. Use getLocalVariables() instead. Will be removed in 2.1.x. |
| 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> computeBaseContextVariables()
public Map<String,Object> getBaseContextVariables()
IProcessingContextReturns the map of base variables that should be made available to every expression evaluation operation (whenever variable evaluation is available).
getBaseContextVariables in interface IProcessingContextpublic IContext getContext()
IProcessingContextReturns the current context specified for template processing.
getContext in interface IProcessingContextpublic Object getExpressionEvaluationRoot()
IProcessingContextReturns 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 IProcessingContextpublic Object getExpressionSelectionEvaluationRoot()
IProcessingContextReturns 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 IProcessingContextpublic boolean hasSelectionTarget()
IProcessingContextReturns whether there currently is a selection going on (e.g. th:object in standard dialect).
hasSelectionTarget in interface IProcessingContextpublic Object getSelectionTarget()
IProcessingContextReturns the selection target object, and raises an exception if there isn't any.
Meant for internal use.
getSelectionTarget in interface IProcessingContextpublic boolean hasLocalVariables()
IProcessingContextReturns whether local variables have currently been specified or not. (e.g. th:with in standard dialect).
hasLocalVariables in interface IProcessingContextpublic boolean hasLocalVariable(String variableName)
IProcessingContextReturns whether a specific local variable is defined or not.
hasLocalVariable in interface IProcessingContextpublic Object getLocalVariable(String variableName)
IProcessingContextReturns the value of a local variable.
getLocalVariable in interface IProcessingContextvariableName - the name of the local variable to be returned
public Map<String,Object> getLocalVariables()
IProcessingContextReturns the map of local variables.
getLocalVariables in interface IProcessingContext@Deprecated public HashMap<String,Object> unsafeGetLocalVariables()
getLocalVariables() instead. Will be removed in 2.1.x.
Returns the real inner map of local variables. This method should not be called directly.
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 | |||||||||