Package org.jruby.runtime.callsite
Class ArefCallSite
java.lang.Object
org.jruby.runtime.CallSite
org.jruby.runtime.callsite.CachingCallSite
org.jruby.runtime.callsite.MonomorphicCallSite
org.jruby.runtime.callsite.ArefCallSite
-
Field Summary
Fields inherited from class org.jruby.runtime.callsite.CachingCallSite
builtinCache, cacheFields inherited from class org.jruby.runtime.CallSite
callType, methodName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) Call the site's method against the target object, passing a literal long value.call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) Call the site's method against the target object passing one argument.Methods inherited from class org.jruby.runtime.callsite.CachingCallSite
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, callVarargs, callVarargs, callVarargsIter, getCache, getCachedClassIndex, getCachedMethodSerial, getClass, getMethodName, isBuiltin, isBuiltin, isOptimizable, methodMissing, retrieveCache, retrieveCache, retrieveCache, setCache
-
Constructor Details
-
ArefCallSite
public ArefCallSite()
-
-
Method Details
-
call
Description copied from class:CallSiteCall the site's method against the target object, passing a literal long value.- Overrides:
callin classCachingCallSite- Parameters:
context- the ThreadContext for the current threadcaller- the caller, for visibility checksself- the target object to call againstfixnum- the literal long value to pass- Returns:
- the result of the call
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) Description copied from class:CallSiteCall the site's method against the target object passing one argument.- Overrides:
callin classCachingCallSite- Parameters:
context- the ThreadContext for the current threadcaller- the caller, for visibility checksself- the target object to call againstarg- the argument to pass- Returns:
- the result of the call
-