Package org.elasticsearch.script.javascript.support

Examples of org.elasticsearch.script.javascript.support.NativeMap


            setJavaPrimitiveWrap(false); // RingoJS does that..., claims its annoying...
        }

        public Scriptable wrapAsJavaObject(Context cx, Scriptable scope, Object javaObject, Class staticType) {
            if (javaObject instanceof Map) {
                return new NativeMap(scope, (Map) javaObject);
            }
            if (javaObject instanceof List) {
                return new NativeList(scope, (List) javaObject);
            }
            return super.wrapAsJavaObject(cx, scope, javaObject, staticType);
View Full Code Here


            setJavaPrimitiveWrap(false); // RingoJS does that..., claims its annoying...
        }

        public Scriptable wrapAsJavaObject(Context cx, Scriptable scope, Object javaObject, Class staticType) {
            if (javaObject instanceof Map) {
                return new NativeMap(scope, (Map) javaObject);
            }
            if (javaObject instanceof List) {
                return new NativeList(scope, (List) javaObject);
            }
            return super.wrapAsJavaObject(cx, scope, javaObject, staticType);
View Full Code Here

TOP

Related Classes of org.elasticsearch.script.javascript.support.NativeMap

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.