Package mungbean.rhino

Examples of mungbean.rhino.NativeArrayWrapper


import org.mozilla.javascript.ScriptableObject;

public class RhinoWrapper {
    public static Object wrapRhinoToJava(Object o) {
        if (o instanceof NativeArray) {
            return new NativeArrayWrapper((NativeArray) o);
        } else if (NativeJavaObject.canConvert(o, Date.class)) {
            return ((java.util.Date) Context.jsToJava(o, Date.class));
        } else if (o instanceof ScriptableObject) {
            return new ScriptableObjectWrapper((ScriptableObject) o);
        }
View Full Code Here

TOP

Related Classes of mungbean.rhino.NativeArrayWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.