Examples of call()


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

 
  public float tf(int arg0) {
    Function func = otherMethods[M_TF_I];
    if (func == null) return super.tf(arg0);
    Object[] args = new Object[]{new Integer(arg0)};
    Object res = func.call(cx, scope, scope, args);
    float f = 0.0f;
    try {
      f = Float.parseFloat(res.toString());
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of org.mozilla.javascript.NativeFunction.call()

                                try
                                {
                                    NativeFunction function = (NativeFunction) scope.get(functionName, scope);

                                    return (ScriptableObject) function.call(context, scope, null, arguments);
                                } finally
                                {
                                    Context.exit();
                                }
                            }
View Full Code Here

Examples of org.mozilla.javascript.commonjs.module.Require.call()

                Require require = global.installNodeJsRequire(ctx, envAsScriptable, nodeModuleProvider,
                        new NodeRequireBuilder(asyncFunctionQueue, exitCallbackExecutor), false);

                //TODO Get a real buffer here...
                ScriptableObject.putProperty(global, "Buffer", Context.javaToJS(ctx.newObject(global), global));
                Scriptable buffer = (Scriptable) require.call(ctx, global, global, new Object[]{Context.javaToJS("buffer", global)});
                ScriptableObject.putProperty(global, "Buffer", ScriptableObject.getProperty(buffer,"Buffer"));

                Scriptable console = consoleProvider.getConsoleAsScriptable(global);
                ScriptableObject.putProperty(global, "console", console);
View Full Code Here

Examples of org.mvel2.ast.Function.call()

        parms[i] = parameters[i].getValue(ctx, elCtx, variableFactory);
      }
    }

    if (nextNode != null) {
      return nextNode.getValue(function.call(ctx, elCtx, variableFactory, parms), elCtx, variableFactory);
    }
    else {
      return function.call(ctx, elCtx, variableFactory, parms);
    }
  }
View Full Code Here

Examples of org.mvel2.ast.FunctionInstance.call()

          addAccessorNode(new DynamicFunctionAccessor(es));
        }
        else {
          addAccessorNode(new FunctionAccessor(func, es));
        }
        return func.call(ctx, thisRef, variableFactory, args);
      }
      else {
        throw new OptimizationFailure("attempt to optimize a method call for a reference that does not point to a method: "
            + name + " (reference is type: " + (ctx != null ? ctx.getClass().getName() : null) + ")");
      }
View Full Code Here

Examples of org.newdawn.slick.opengl.SlickCallable.call()

    SlickCallable callable = new SlickCallable() {
      protected void performGLOperations() throws SlickException {
        renderGL();
      }
    };
    callable.call();
   
    homer.draw(450,250,80,200);
    font.drawString(150,300,"Text Drawn after the callable");
  }
View Full Code Here

Examples of org.ops4j.pax.exam.ProbeInvoker.call()

    public synchronized void call(TestAddress address) {
        TestInstantiationInstruction instruction = testDirectory.lookup(address);
        ProbeInvokerFactory probeInvokerFactory = ServiceProviderFinder
            .loadUniqueServiceProvider(ProbeInvokerFactory.class);
        ProbeInvoker invoker = probeInvokerFactory.createProbeInvoker(null, instruction.toString());
        invoker.call(address.arguments());
    }

    public synchronized long install(String location, InputStream stream) {
        // just make sure we don't get an "option not recognized" warning
        system.getOptions(WarProbeOption.class);
View Full Code Here

Examples of org.ops4j.pax.exam.TestContainer.call()

        TestContainer testContainer = testToContainerMap.get(address);
        if (testContainer == null) {
            throw new IllegalArgumentException("TestAddress " + address
                + " not from this reactor? Got it from getTargets() really?");
        }
        testContainer.call(address);
    }

    public Set<TestAddress> getTargets() {
        buildTestMap(testContainers, probes);
        return testToContainerMap.keySet();
View Full Code Here

Examples of org.perl6.metamodel.Method.call()

        assertFalse(foo.isa("Bar"));
    }

    public void testCan () {
        Method bar = foo.can("bar");
        assertEquals(bar.call(foo, new ArrayList()), "Foo.bar");
       
        assertNull(foo.can("wysiwyg"));
    }
}
View Full Code Here

Examples of org.platformlayer.ops.tasks.OperationWorker.call()

        PersistentActiveJob activeJob = new PersistentActiveJob(SimpleOperationQueue.this, auth, execution);
        activeJobs.put(execution.jobKey, activeJob);

        OperationWorker operationWorker = new OperationWorker(opsSystem, activeJob);

        return operationWorker.call();
      } finally {
        Locks.unlock(lock);
      }
    }
  }
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.