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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate RubySymbolprivate RespondToCallSite.RespondToTupleFields 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 TypeMethodDescriptionprotected IRubyObjectcacheAndCall(IRubyObject caller, RubyClass selfType, ThreadContext context, IRubyObject self, IRubyObject arg) protected IRubyObjectcacheAndCall(IRubyObject caller, RubyClass selfType, ThreadContext context, IRubyObject self, 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.private RubySymbolgetRespondToNameSym(ThreadContext context) private static RespondToCallSite.RespondToTuplerecacheRespondsTo(CacheEntry respondToMethod, String newString, RubyClass klass, boolean checkVisibility, ThreadContext context) booleanrespondsTo(ThreadContext context, IRubyObject caller, IRubyObject self) booleanrespondsTo(ThreadContext context, IRubyObject caller, IRubyObject self, boolean includePrivate) Methods inherited from class org.jruby.runtime.callsite.CachingCallSite
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
-
Field Details
-
respondToTuple
-
respondToName
-
respondToNameSym
-
-
Constructor Details
-
RespondToCallSite
public RespondToCallSite() -
RespondToCallSite
-
-
Method Details
-
call
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject name) 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 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:CallSiteCall the site's method against the target object passing two arguments.- Overrides:
callin 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) -
getRespondToNameSym
-
cacheAndCall
protected IRubyObject cacheAndCall(IRubyObject caller, RubyClass selfType, ThreadContext context, IRubyObject self, IRubyObject arg) - Overrides:
cacheAndCallin classCachingCallSite
-
cacheAndCall
protected IRubyObject cacheAndCall(IRubyObject caller, RubyClass selfType, ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1) - Overrides:
cacheAndCallin classCachingCallSite
-
recacheRespondsTo
private static RespondToCallSite.RespondToTuple recacheRespondsTo(CacheEntry respondToMethod, String newString, RubyClass klass, boolean checkVisibility, ThreadContext context)
-