Package org.jruby.runtime.callsite
Class RefinedCachingCallSite
java.lang.Object
org.jruby.runtime.CallSite
org.jruby.runtime.callsite.CachingCallSite
org.jruby.runtime.callsite.RefinedCachingCallSite
-
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
ConstructorsConstructorDescriptionRefinedCachingCallSite
(String methodName, IRScope scope, CallType callType) RefinedCachingCallSite
(String methodName, StaticScope scope, CallType callType) -
Method Summary
Modifier and TypeMethodDescriptioncall
(ThreadContext context, IRubyObject caller, IRubyObject self) Call the site's method against the target object passing no args.call
(ThreadContext context, IRubyObject caller, IRubyObject self, Block block) Call the site's method against the target object passing no arguments and a non-literal (block pass, &) block.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0) Call the site's method against the target object passing one argument.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args) Call the site's method against the target object passing arguments.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block) Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, Block block) Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1) Call the site's method against the target object passing two arguments.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block) Call the site's method against the target object passing two arguments and a non-literal (block pass, &) block.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) Call the site's method against the target object passing two arguments.call
(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) Call the site's method against the target object passing three arguments and a non-literal (block pass, &) block.protected boolean
methodMissing
(DynamicMethod method, IRubyObject caller) Methods inherited from class org.jruby.runtime.callsite.CachingCallSite
cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, cacheAndCall, 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, retrieveCache, retrieveCache, retrieveCache, setCache
-
Constructor Details
-
RefinedCachingCallSite
-
RefinedCachingCallSite
-
-
Method Details
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args) Description copied from class:CallSite
Call the site's method against the target object passing arguments.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstargs
- the arguments to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block) Description copied from class:CallSite
Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstargs
- the arguments to passblock
- the block argument to pass- Returns:
- the result of the call
-
call
Description copied from class:CallSite
Call the site's method against the target object passing no args.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call against- Returns:
- the result of the call
-
call
Description copied from class:CallSite
Call the site's method against the target object passing no arguments and a non-literal (block pass, &) block.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstblock
- the block argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0) 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 againstarg0
- the argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, Block block) Description copied from class:CallSite
Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg0
- the argument to passblock
- the block argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1) 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 againstarg0
- the first argument to passarg1
- the second argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block) Description copied from class:CallSite
Call the site's method against the target object passing two arguments and a non-literal (block pass, &) block.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg0
- the first argument to passarg1
- the second argument to passblock
- the block argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) 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 againstarg0
- the first argument to passarg1
- the second argument to passarg2
- the third argument to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) Description copied from class:CallSite
Call the site's method against the target object passing three arguments and a non-literal (block pass, &) block.- Overrides:
call
in classCachingCallSite
- Parameters:
context
- the ThreadContext for the current threadcaller
- the caller, for visibility checksself
- the target object to call againstarg0
- the first argument to passarg1
- the second argument to passarg2
- the third argument to passblock
- the block argument to pass- Returns:
- the result of the call
-
methodMissing
- Overrides:
methodMissing
in classCachingCallSite
-