public class RespondToCallSite extends NormalCachingCallSite
cache
callType, methodName
Constructor and Description |
---|
RespondToCallSite() |
RespondToCallSite(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
respondsTo(ThreadContext context,
IRubyObject caller,
IRubyObject self) |
boolean |
respondsTo(ThreadContext context,
IRubyObject caller,
IRubyObject self,
boolean includePrivate) |
methodMissing
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, callVarargs, callVarargs, callVarargsIter, getCache, getCachedClassIndex, getCachedMethodSerial, getClass, getMethodName, isBuiltin, isOptimizable, retrieveCache, retrieveCache
public RespondToCallSite()
public RespondToCallSite(java.lang.String name)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject name)
CallSite
call
in class CachingCallSite
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstname
- the argument to passpublic IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject name, IRubyObject bool)
CallSite
call
in class CachingCallSite
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 passpublic boolean respondsTo(ThreadContext context, IRubyObject caller, IRubyObject self)
public boolean respondsTo(ThreadContext context, IRubyObject caller, IRubyObject self, boolean includePrivate)
protected IRubyObject cacheAndCall(IRubyObject caller, RubyClass selfType, ThreadContext context, IRubyObject self, IRubyObject arg)
cacheAndCall
in class CachingCallSite
protected IRubyObject cacheAndCall(IRubyObject caller, RubyClass selfType, ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1)
cacheAndCall
in class CachingCallSite
Copyright © 2001-2018 JRuby. All Rights Reserved.