Package org.jruby.runtime.callsite
Class RespondToCallSite
java.lang.Object
org.jruby.runtime.CallSite
org.jruby.runtime.callsite.CachingCallSite
org.jruby.runtime.callsite.MonomorphicCallSite
org.jruby.runtime.callsite.RespondToCallSite
-
Field Summary
Fields inherited from class org.jruby.runtime.callsite.CachingCallSite
builtinCache, cache
Fields inherited from class org.jruby.runtime.CallSite
callType, methodName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IRubyObject
cacheAndCall
(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject arg) protected IRubyObject
cacheAndCall
(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject arg0, IRubyObject arg1) call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject name) Call the site's method against the target object passing one argument.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) 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, callVarargs, callVarargs, callVarargsIter, fcall, fcall, fcall, fcall, fcall, fcall, fcall, fcall, fcall, fcall, fcallIter, fcallIter, fcallIter, fcallIter, fcallIter, fcallVarargs, fcallVarargs, fcallVarargsIter, getCache, getCachedClassIndex, getCachedMethodSerial, getClass, getMethodName, isBuiltin, isBuiltin, isOptimizable, methodMissing, retrieveCache, retrieveCache, retrieveCache, setCache
-
Constructor Details
-
RespondToCallSite
public RespondToCallSite() -
RespondToCallSite
-
-
Method Details
-
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 classCachingCallSite
- 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 classCachingCallSite
- 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
-
respondsTo
-
respondsTo
public boolean respondsTo(ThreadContext context, IRubyObject caller, IRubyObject self, boolean includePrivate) -
cacheAndCall
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject arg) - Overrides:
cacheAndCall
in classCachingCallSite
-
cacheAndCall
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject arg0, IRubyObject arg1) - Overrides:
cacheAndCall
in classCachingCallSite
-