Examples of call()


Examples of org.jruby.compiler.CompilerCallback.call()

                    caseValues[i] = entry.getKey();
                    caseLabels[i] = entry.getValue();
                }

                // checkcast the value; if match, fast path; otherwise proceed to slow logic
                getCaseValue.call(this);
                method.instance_of(p(fastSwitchType.getAssociatedClass()));
                method.ifeq(slowPath);

                switch (fastSwitchType) {
                case FIXNUM:
View Full Code Here

Examples of org.jruby.internal.runtime.methods.DynamicMethod.call()

        DynamicMethod method = entry.method;
        if (methodMissing(method, caller)) {
            return callMethodMissing(context, self, method, args, block);
        }
        cache = entry;
        return method.call(context, self, selfType, methodName, args, block);
    }

    protected IRubyObject cacheAndCall(IRubyObject caller, RubyClass selfType, IRubyObject[] args, ThreadContext context, IRubyObject self) {
        CacheEntry entry = selfType.searchWithCache(methodName);
        DynamicMethod method = entry.method;
View Full Code Here

Examples of org.jruby.internal.runtime.methods.InterpretedIRMethod.call()

        IRMethod rootMethod = root.getRootClass().getRootMethod();
        RubyModule metaclass = self.getMetaClass();

        InterpretedIRMethod method = new InterpretedIRMethod(rootMethod, metaclass);

        IRubyObject rv =  method.call(runtime.getCurrentContext(), self, metaclass, "", new IRubyObject[]{});
        if (debug) {
            System.out.println("-- Interpreted " + interpInstrsCount + " instructions");
        }
        return rv;
    }
View Full Code Here

Examples of org.jruby.ir.IREvalScript.call()

        IREvalScript evalScript = IRBuilder.createIRBuilder(runtime.getIRManager(), is_1_9).buildEvalRoot(ss, containingIRScope, file, lineNumber, rootNode);
        evalScript.prepareForInterpretation(false);
//        evalScript.runCompilerPass(new CallSplitter());
        ThreadContext context = runtime.getCurrentContext();
        runBeginEndBlocks(evalScript.getBeginBlocks(), context, self, null); // FIXME: No temp vars yet right?
        IRubyObject rv = evalScript.call(context, self, evalScript.getStaticScope().getModule(), rootNode.getScope(), block, backtraceName);
        runBeginEndBlocks(evalScript.getEndBlocks(), context, self, null); // FIXME: No temp vars right?
        return rv;
    }

    public static IRubyObject interpretSimpleEval(Ruby runtime, String file, int lineNumber, String backtraceName, Node node, IRubyObject self) {
View Full Code Here

Examples of org.jruby.rack.DefaultRackApplication.call()

                return req.getRestOfPath();
            }
        };
        DefaultRackApplication dra = new DefaultRackApplication();
        dra.setApplication(servletHandler);
        dra.call(env)
                .respond(new ServletRackResponseEnvironment(Stapler.getCurrentResponse()));
    }
}
View Full Code Here

Examples of org.jruby.runtime.Block.call()

        JumpTarget jumpTarget = newBlock.getBinding().getFrame().getJumpTarget();
       
        try {
            if (self != null) newBlock.getBinding().setSelf(self);
           
            return newBlock.call(context, args);
        } catch (JumpException.BreakJump bj) {
            switch(block.type) {
            case LAMBDA: if (bj.getTarget() == jumpTarget) {
                return (IRubyObject) bj.getValue();
            } else {
View Full Code Here

Examples of org.jruby.runtime.CallSite.call()

        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite;
        callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, args);

        return args[args.length - 1];
    }
   
    protected static boolean hasMetaClass(IRubyObject object) {
View Full Code Here

Examples of org.jruby.runtime.callsite.FunctionalCachingCallSite.call()

                    throw context.runtime.newArgumentError("no receiver given");
                }

                IRubyObject self = array.shift(context);

                return site.call(context, self, self, array.toJavaArray());
            }
           
            @Override
            public IRubyObject yield(ThreadContext context, IRubyObject value, Binding binding, Type type) {
                return yieldInner(context, ArgsUtil.convertToRubyArray(context.runtime, value, false));
View Full Code Here

Examples of org.jscsi.target.TargetServer.call()

        final File configFile = CONFIGPATH;
        // Creating the Configuration
        final Configuration config = Configuration.create(Configuration.CONFIGURATION_SCHEMA_FILE, configFile, "");
        // Starting the Target
        final TargetServer target = new TargetServer(config);
        target.call();
    }

}
View Full Code Here

Examples of org.jugile.util.Proxy.call()

    return res;
  }
 
  private boolean isTrue(Object item, String mname) {
    Proxy p = new Proxy(item);
    return isTrue(p.call(mname));
  }
  private boolean isTrue(Object res) {
    if (res instanceof Boolean) {
      if ((Boolean)res) return true;
      return 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.