org.jruby.runtime.callsite
Class RespondToCallSite

java.lang.Object
  extended by org.jruby.runtime.CallSite
      extended by org.jruby.runtime.callsite.CachingCallSite
          extended by org.jruby.runtime.callsite.NormalCachingCallSite
              extended by org.jruby.runtime.callsite.RespondToCallSite

public class RespondToCallSite
extends NormalCachingCallSite


Field Summary
 
Fields inherited from class org.jruby.runtime.callsite.CachingCallSite
cache, totalCallSites
 
Fields inherited from class org.jruby.runtime.CallSite
callType, methodName
 
Constructor Summary
RespondToCallSite()
           
 
Method Summary
protected  IRubyObject cacheAndCall(IRubyObject caller, RubyClass selfType, ThreadContext context, IRubyObject self, IRubyObject arg)
           
protected  IRubyObject cacheAndCall(IRubyObject caller, RubyClass selfType, ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1)
           
 IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject name)
          Call the site's method against the target object passing one argument.
 IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject name, IRubyObject bool)
          Call the site's method against the target object passing two arguments.
 
Methods inherited from class org.jruby.runtime.callsite.NormalCachingCallSite
methodMissing
 
Methods inherited from class org.jruby.runtime.callsite.CachingCallSite
cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, call, call, call, call, call, call, call, call, call, call, callIter, callIter, callIter, callIter, callIter, callMethodMissing, callMethodMissing, callMethodMissing, callMethodMissing, callMethodMissing, callMethodMissing, callMethodMissing, callMethodMissing, callMethodMissing, callMethodMissing, getCache, getCachedClassIndex, getCachedMethodSerial, getMethodName, isOptimizable, updateCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RespondToCallSite

public RespondToCallSite()
Method Detail

call

public IRubyObject call(ThreadContext context,
                        IRubyObject caller,
                        IRubyObject self,
                        IRubyObject name)
Description copied from class: CallSite
Call the site's method against the target object passing one argument.

Overrides:
call in class CachingCallSite
Parameters:
context - the ThreadContext for the current thread
caller - the caller, for visibility checks
self - the target object to call against
name - the argument to pass
Returns:
the result of the call

call

public IRubyObject call(ThreadContext context,
                        IRubyObject caller,
                        IRubyObject self,
                        IRubyObject name,
                        IRubyObject bool)
Description copied from class: CallSite
Call the site's method against the target object passing two arguments.

Overrides:
call in class CachingCallSite
Parameters:
context - the ThreadContext for the current thread
caller - the caller, for visibility checks
self - the target object to call against
name - the first argument to pass
bool - the second argument to pass
Returns:
the result of the call

cacheAndCall

protected IRubyObject cacheAndCall(IRubyObject caller,
                                   RubyClass selfType,
                                   ThreadContext context,
                                   IRubyObject self,
                                   IRubyObject arg)
Overrides:
cacheAndCall in class CachingCallSite

cacheAndCall

protected IRubyObject cacheAndCall(IRubyObject caller,
                                   RubyClass selfType,
                                   ThreadContext context,
                                   IRubyObject self,
                                   IRubyObject arg0,
                                   IRubyObject arg1)
Overrides:
cacheAndCall in class CachingCallSite


Copyright © 2002-2009 JRuby Team. All Rights Reserved.