Package io.karatelabs.js
Class Bindings
java.lang.Object
io.karatelabs.js.Bindings
Host-facing
Map view over an internal BindingsStore.
Auto-unwraps values on read (JS types → Java types via Engine.toJava(java.lang.Object))
and filters out hidden entries — preserves the contract that
Engine.putRootBinding(java.lang.String, java.lang.Object)-injected resources and lazy-cached built-ins
stay invisible to host inspection.
Engine internals don't go through this class; they read and write the
BindingsStore directly to keep value identity intact.
-
Nested Class Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
toString
-