Class VariableContextScriptBindings
java.lang.Object
org.camunda.bpm.dmn.engine.impl.el.VariableContextScriptBindings
A Script
Bindings
implementation wrapping a provided
VariableContext
and Bindings
instance.
Enhances the Bindings with the variables resolvable through the VariableContext
.
The variables are treated as read only: all mutating operations write through to the
wrapped Bindings
.- Author:
- Daniel Meyer
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVariableContextScriptBindings
(Bindings wrappedBindings, VariableContext variableContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasonsboolean
containsValue
(Object value) entrySet()
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasonsboolean
isEmpty()
keySet()
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasonsvoid
int
size()
protected Object
unpack
(TypedValue resolvedValue) values()
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 Details
-
wrappedBindings
-
variableContext
-
-
Constructor Details
-
VariableContextScriptBindings
-
-
Method Details
-
containsKey
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
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasons -
put
Dedicated implementation which does not fall back on thecalculateBindingMap()
for performance reasons -
entrySet
-
keySet
-
size
public int size() -
values
-
putAll
-
remove
-
clear
public void clear() -
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object>
-
isEmpty
public boolean isEmpty() -
calculateBindingMap
-
unpack
-
wrap
public static VariableContextScriptBindings wrap(Bindings wrappedBindings, VariableContext variableContext)
-