Package org.mozilla.javascript

Examples of org.mozilla.javascript.Function.construct()


      }
      Scriptable global = GlobalData.getGlobalScope();
     
      Function queryFunction = (Function) ScriptableObject.getProperty(schema, "query");
      Function QueryString = (Function) global.get("QueryString", global);
      Scriptable queryString = QueryString.construct(PersevereContextFactory.getContext(), global, new Object[]{jsonPath, paramScope});
      if(queryFunction instanceof Method){
        queryFunction = ((Method)queryFunction).innerFunction;
      }
      result = queryFunction.call(PersevereContextFactory.getContext(), global, target, new Object[]{queryString, target});
    }finally{
View Full Code Here


          return null;
        scope = ScriptableObject.getTopLevelScope(scope);
        // Do not go through Context.javaToJS as this would again
        // end up here in wrapCustom for a native object.
        // Just wrap it as an ExtendedJavaObject.
        return ctor.construct(cx, scope, new Object[] {
          new ExtendedJavaObject(scope, javaObj, javaObj.getClass(),
              false)
        });
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.