nashorn/src/jdk/nashorn/api/scripting/ScriptObjectMirror.java
changeset 24639 cde22f00c4e6
parent 23375 a1110f2cbe75
child 24770 17f8e3b82ad3
equal deleted inserted replaced
24615:74eb0778e4f2 24639:cde22f00c4e6
   619     }
   619     }
   620 
   620 
   621     /**
   621     /**
   622      * Utilitity to convert this script object to the given type.
   622      * Utilitity to convert this script object to the given type.
   623      *
   623      *
       
   624      * @param <T> destination type to convert to
   624      * @param type destination type to convert to
   625      * @param type destination type to convert to
   625      * @return converted object
   626      * @return converted object
   626      */
   627      */
   627     public <T> T to(final Class<T> type) {
   628     public <T> T to(final Class<T> type) {
   628         return inGlobal(new Callable<T>() {
   629         return inGlobal(new Callable<T>() {