Here you can find the source of wrapJavaObj(Object javaObj, Scriptable scope)
Parameter | Description |
---|---|
javaObj | a parameter |
scope | a parameter |
public static final Object wrapJavaObj(Object javaObj, Scriptable scope)
//package com.java2s; //License from project: Apache License import org.mozilla.javascript.Context; import org.mozilla.javascript.Scriptable; public class Main { /**/*from ww w . j a v a 2 s .co m*/ * Wrap java object to javascript object * @param javaObj * @param scope * @return */ public static final Object wrapJavaObj(Object javaObj, Scriptable scope) { return Context.javaToJS(javaObj, scope); } }