Class VariableContextScriptBindings
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.el.VariableContextScriptBindings
-
public class VariableContextScriptBindings extends Object implements Bindings
A ScriptBindings
implementation wrapping a providedVariableContext
andBindings
instance. Enhances the Bindings with the variables resolvable through theVariableContext
. The variables are treated as read only: all mutating operations write through to the wrappedBindings
.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableContext
variableContext
protected Bindings
wrappedBindings
-
Constructor Summary
Constructors Constructor Description VariableContextScriptBindings(Bindings wrappedBindings, VariableContext variableContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
calculateBindingMap()
void
clear()
boolean
containsKey(Object key)
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasonsboolean
containsValue(Object value)
Set<Map.Entry<String,Object>>
entrySet()
Object
get(Object key)
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasonsboolean
isEmpty()
Set<String>
keySet()
Object
put(String name, Object value)
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasonsvoid
putAll(Map<? extends String,?> toMerge)
Object
remove(Object key)
int
size()
protected Object
unpack(TypedValue resolvedValue)
Collection<Object>
values()
static VariableContextScriptBindings
wrap(Bindings wrappedBindings, VariableContext variableContext)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
wrappedBindings
protected Bindings wrappedBindings
-
variableContext
protected VariableContext variableContext
-
-
Constructor Detail
-
VariableContextScriptBindings
public VariableContextScriptBindings(Bindings wrappedBindings, VariableContext variableContext)
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasons- Specified by:
containsKey
in interfaceBindings
- Specified by:
containsKey
in interfaceMap<String,Object>
-
get
public Object get(Object key)
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasons
-
put
public Object put(String name, Object value)
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasons
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
-
unpack
protected Object unpack(TypedValue resolvedValue)
-
wrap
public static VariableContextScriptBindings wrap(Bindings wrappedBindings, VariableContext variableContext)
-
-