Spec-Zone .ru
спецификации, руководства, описания, API
Documentation Contents

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.
 

Constructor Detail

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


Oracle and/or its affiliates Copyright © 1993, 2012, Oracle and/or its affiliates. All rights reserved.
Contact Us