org.jruby.runtime.callsite
Class RespondToCallSite
java.lang.Object
org.jruby.runtime.CallSite
org.jruby.runtime.callsite.CachingCallSite
org.jruby.runtime.callsite.NormalCachingCallSite
org.jruby.runtime.callsite.RespondToCallSite
public class RespondToCallSite
- extends NormalCachingCallSite
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.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 |
RespondToCallSite
public RespondToCallSite()
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 threadcaller
- the caller, for visibility checksself
- the target object to call againstname
- 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 threadcaller
- the caller, for visibility checksself
- the target object to call againstname
- the first argument to passbool
- 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.