Java Nashorn Javascript Library unwrap(final Object source)

Here you can find the source of unwrap(final Object source)

Description

unwrap

License

Open Source License

Declaration

public static Object unwrap(final Object source) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import jdk.nashorn.api.scripting.ScriptObjectMirror;
import jdk.nashorn.api.scripting.ScriptUtils;

public class Main {
    public static Object unwrap(final Object source) {
        if (source instanceof ScriptObjectMirror) {
            return ScriptUtils.unwrap(source);
        }//  ww w.  j  a  v  a  2 s  . c o  m

        return source;
    }
}

Related

  1. newObject()
  2. parse(final String code, final String name, final boolean includeLoc)
  3. rightAdjustCharHeadWithPrev(final int s, final IntHolder prev)
  4. toDate(final Object value)
  5. toRegExp(String source, String optionsString)
  6. unwrapMap(ScriptObjectMirror jso)
  7. wrap(Map map)