Java Javascript Mozilla Library jsToJava(Object obj)

Here you can find the source of jsToJava(Object obj)

Description

js To Java

License

Apache License

Declaration

public static Object jsToJava(Object obj) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import org.mozilla.javascript.Wrapper;

public class Main {
    public static Object jsToJava(Object obj) {
        while (obj instanceof Wrapper) {
            obj = ((Wrapper) obj).unwrap();
        }//from  w  ww.ja  va 2s.  c o m
        return obj;
    }
}

Related

  1. isStaticProperty(Scriptable property)
  2. isValid(Object[] args)
  3. isVariable(Name name)
  4. javaToJS(Object o, Scriptable scope)
  5. jsToJava(Object jsObject)
  6. listToNativeArray(List list)
  7. mapJSToJava(final Object jsObject)
  8. mapToNativeObject(Map map)
  9. nativeArrayToString(Object scriptObject)