org.jruby.runtime.callsite
Class ModCallSite

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.ModCallSite

public class ModCallSite
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
ModCallSite()
           
 
Method Summary
 IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg)
          Call the site's method against the target object passing one argument.
 IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum)
          Call the site's method against the target object, passing a literal long value.
 
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, 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

ModCallSite

public ModCallSite()
Method Detail

call

public IRubyObject call(ThreadContext context,
                        IRubyObject caller,
                        IRubyObject self,
                        long fixnum)
Description copied from class: CallSite
Call the site's method against the target object, passing a literal long value.

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
fixnum - the literal long value to pass
Returns:
the result of the call

call

public IRubyObject call(ThreadContext context,
                        IRubyObject caller,
                        IRubyObject self,
                        IRubyObject arg)
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
arg - the argument to pass
Returns:
the result of the call


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