Class VariableContextScriptBindings
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.el.VariableContextScriptBindings
-
public class VariableContextScriptBindings extends Object implements Bindings
A ScriptBindingsimplementation wrapping a providedVariableContextandBindingsinstance. 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 VariableContextvariableContextprotected BindingswrappedBindings
-
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()voidclear()booleancontainsKey(Object key)Dedicated implementation which does not fall back on thecalculateBindingMap()for performance reasonsbooleancontainsValue(Object value)Set<Map.Entry<String,Object>>entrySet()Objectget(Object key)Dedicated implementation which does not fall back on thecalculateBindingMap()for performance reasonsbooleanisEmpty()Set<String>keySet()Objectput(String name, Object value)Dedicated implementation which does not fall back on thecalculateBindingMap()for performance reasonsvoidputAll(Map<? extends String,?> toMerge)Objectremove(Object key)intsize()protected Objectunpack(TypedValue resolvedValue)Collection<Object>values()static VariableContextScriptBindingswrap(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:
containsKeyin interfaceBindings- Specified by:
containsKeyin 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:
containsValuein interfaceMap<String,Object>
-
unpack
protected Object unpack(TypedValue resolvedValue)
-
wrap
public static VariableContextScriptBindings wrap(Bindings wrappedBindings, VariableContext variableContext)
-
-