Package de.innovationgate.ext.org.mozilla.javascript

Examples of de.innovationgate.ext.org.mozilla.javascript.NativeJavaClass


    public synchronized void init(Context cx, WGACore wgaCore) {
        if (!_inited) {
            initStandardObjects(cx, false);
            _wgaGlobal.setParentScope(this);
            _wgaGlobal.put("Core", _wgaGlobal, wgaCore);
            _wgaGlobal.put("Utils", _wgaGlobal, new NativeJavaClass(_wgaGlobal, WGUtils.class));
            _inited = true;
            _wgaGlobal.sealObject();
            sealObject();
        }
    }
View Full Code Here


        return false;
    }

    public boolean hasInstance(Scriptable instance) {
        if (instance instanceof NativeJavaClass) {
            NativeJavaClass javaClass = (NativeJavaClass) instance;
            return javaClass.getClassObject().isAssignableFrom(TMLScriptRootScopeData.class);
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.ext.org.mozilla.javascript.NativeJavaClass

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.