public class RespondToCallSite extends MonomorphicCallSite
builtinCache, 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) |
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, isBuiltin, isOptimizable, methodMissing, retrieveCache, retrieveCache, retrieveCache, setCache
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-2020 JRuby. All Rights Reserved.