Package org.mozilla.javascript

Examples of org.mozilla.javascript.MemberBox


      else if (last instanceof NativeObject) {
        // Now see if the constructor takes a Map as the last argument.
        // If so, the NativeObject will be converted to it thought
        // RhinoWrapFactory. Otherwise, the NativeObject is used
        // as the properties to be set on the instance after creation.
        MemberBox ctor = findConstructor(cx, args);
        if (ctor != null) {
          Class[] types = ctor.ctor().getParameterTypes();
          Class lastType = types[types.length - 1];
          // Only set the property object if the constructor does
          // not expect an ArgumentReader or a Map object, both
          // of which NativeObject's can be converted to.
          if (!ArgumentReader.class.isAssignableFrom(lastType)
View Full Code Here

TOP

Related Classes of org.mozilla.javascript.MemberBox

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.