Class jmap
Object
|
+--jmap
- class
jmap
Defined in init.js
Constructor Summary |
jmap
(map)
Creates a convenient script object to deal with java.util.Map instances.
|
jmap
jmap(map)
Creates a convenient script object to deal with java.util.Map instances.
The result script object's field names are keys of the Map. For example,
scriptObj.keyName can be used to access value associated with given key.
Example:
var x = java.lang.SystemProperties();
var y = jmap(x);
print(y['java.class.path']); // prints java.class.path System property
delete y['java.class.path']; // remove java.class.path System property
Parameters:
map
- java.util.Map instance that will be wrapped