public class DialectAwareProcessingContext extends AbstractDialectAwareProcessingContext
Basic implementation of AbstractDialectAwareProcessingContext
.
EVAL_SELECTION_TARGET_LOCAL_VARIABLE_NAME
Constructor and Description |
---|
DialectAwareProcessingContext(AbstractDialectAwareProcessingContext processingContext) |
DialectAwareProcessingContext(IContext context,
Collection<? extends IDialect> dialects) |
DialectAwareProcessingContext(IContext context,
Map<String,Object> localVariables,
Collection<? extends IDialect> dialects) |
DialectAwareProcessingContext(IContext context,
Map<String,Object> localVariables,
Object selectionTarget,
boolean selectionTargetSet,
Collection<? extends IDialect> dialects) |
DialectAwareProcessingContext(IProcessingContext processingContext,
Collection<? extends IDialect> dialects) |
Modifier and Type | Method and Description |
---|---|
DialectAwareProcessingContext |
addLocalVariables(Map<String,Object> newVariables)
Creates a new DialectAwareProcessingContext object by adding some new local variables
to the existing map (the rest of the attributes are copied verbatim).
|
DialectAwareProcessingContext |
setSelectionTarget(Object selectionTargetObject)
Creates a new Arguments object by setting a selection target into the processing
context, so that selection expressions are executed on it from then on.
|
computeExpressionObjects, getExpressionEnhancingDialects
getContext, getExpressionEvaluationRoot, getExpressionObjects, getExpressionSelectionEvaluationRoot, getLocalVariable, getLocalVariables, getSelectionTarget, hasLocalVariable, hasLocalVariables, hasSelectionTarget, mergeNewLocalVariables
public DialectAwareProcessingContext(IContext context, Collection<? extends IDialect> dialects)
public DialectAwareProcessingContext(IContext context, Map<String,Object> localVariables, Collection<? extends IDialect> dialects)
public DialectAwareProcessingContext(IContext context, Map<String,Object> localVariables, Object selectionTarget, boolean selectionTargetSet, Collection<? extends IDialect> dialects)
public DialectAwareProcessingContext(AbstractDialectAwareProcessingContext processingContext)
public DialectAwareProcessingContext(IProcessingContext processingContext, Collection<? extends IDialect> dialects)
public DialectAwareProcessingContext addLocalVariables(Map<String,Object> newVariables)
Creates a new DialectAwareProcessingContext object by adding some new local variables to the existing map (the rest of the attributes are copied verbatim).
newVariables
- the new variablespublic DialectAwareProcessingContext setSelectionTarget(Object selectionTargetObject)
Creates a new Arguments object by setting a selection target into the processing context, so that selection expressions are executed on it from then on.
selectionTargetObject
- the selection target object to be set.Copyright © 2017 The THYMELEAF team. All rights reserved.