public abstract class CachingCallSite extends CallSite
| Modifier and Type | Field and Description |
|---|---|
protected CacheEntry |
builtinCache
Deprecated.
|
protected CacheEntry |
cache |
callType, methodName| Constructor and Description |
|---|
CachingCallSite(java.lang.String methodName,
CallType callType) |
| Modifier and Type | Method and Description |
|---|---|
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType) |
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType,
Block block) |
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType,
Block block,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3) |
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType,
IRubyObject arg) |
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType,
IRubyObject[] args) |
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType,
IRubyObject[] args,
Block block) |
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType,
IRubyObject arg,
Block block) |
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType,
IRubyObject arg1,
IRubyObject arg2) |
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
protected IRubyObject |
cacheAndCall(ThreadContext context,
IRubyObject caller,
IRubyObject self,
RubyClass selfType,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3) |
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self)
Call the site's method against the target object passing no args.
|
IRubyObject |
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.
|
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
double flote)
Call the site's method against the target object, passing a literal double
value.
|
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject... args)
Call the site's method against the target object passing arguments.
|
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg1)
Call the site's method against the target object passing one argument.
|
IRubyObject |
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.
|
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg1,
Block block)
Call the site's method against the target object passing one argument and
a non-literal (block pass, &) block.
|
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2)
Call the site's method against the target object passing two arguments.
|
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
Block block)
Call the site's method against the target object passing two arguments and
a non-literal (block pass, &) block.
|
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3)
Call the site's method against the target object passing two arguments.
|
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
Block block)
Call the site's method against the target object passing three arguments and
a non-literal (block pass, &) block.
|
IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
long fixnum)
Call the site's method against the target object, passing a literal long
value.
|
IRubyObject |
callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
Block block)
Call the site's method against the target object passing no arguments and
a literal block.
|
IRubyObject |
callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject[] args,
Block block)
Call the site's method against the target object passing arguments and
a literal block.
|
IRubyObject |
callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg1,
Block block)
Call the site's method against the target object passing one argument and
a literal block.
|
IRubyObject |
callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
Block block)
Call the site's method against the target object passing two arguments and
a literal block.
|
IRubyObject |
callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
Block block)
Call the site's method against the target object passing three arguments and
a literal block.
|
IRubyObject |
callVarargs(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject... args)
Call the site's method against the target object passing arguments.
|
IRubyObject |
callVarargs(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.
|
IRubyObject |
callVarargsIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject[] args,
Block block)
Call the site's method against the target object passing arguments and
a literal block.
|
IRubyObject |
fcall(ThreadContext context,
IRubyObject self) |
IRubyObject |
fcall(ThreadContext context,
IRubyObject self,
Block block) |
IRubyObject |
fcall(ThreadContext context,
IRubyObject self,
IRubyObject... args) |
IRubyObject |
fcall(ThreadContext context,
IRubyObject self,
IRubyObject arg1) |
IRubyObject |
fcall(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block) |
IRubyObject |
fcall(ThreadContext context,
IRubyObject self,
IRubyObject arg1,
Block block) |
IRubyObject |
fcall(ThreadContext context,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2) |
IRubyObject |
fcall(ThreadContext context,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
IRubyObject |
fcall(ThreadContext context,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3) |
IRubyObject |
fcall(ThreadContext context,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
Block block) |
IRubyObject |
fcallIter(ThreadContext context,
IRubyObject self,
Block block) |
IRubyObject |
fcallIter(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block) |
IRubyObject |
fcallIter(ThreadContext context,
IRubyObject self,
IRubyObject arg1,
Block block) |
IRubyObject |
fcallIter(ThreadContext context,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
IRubyObject |
fcallIter(ThreadContext context,
IRubyObject self,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
Block block) |
IRubyObject |
fcallVarargs(ThreadContext context,
IRubyObject self,
IRubyObject... args) |
IRubyObject |
fcallVarargs(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block) |
IRubyObject |
fcallVarargsIter(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block) |
CacheEntry |
getCache() |
int |
getCachedClassIndex() |
long |
getCachedMethodSerial() |
protected static RubyClass |
getClass(IRubyObject self) |
java.lang.String |
getMethodName() |
boolean |
isBuiltin(IRubyObject self) |
boolean |
isBuiltin(RubyClass selfType) |
boolean |
isOptimizable() |
protected boolean |
methodMissing(DynamicMethod method,
IRubyObject caller) |
CacheEntry |
retrieveCache(IRubyObject self) |
CacheEntry |
retrieveCache(RubyClass selfType) |
CacheEntry |
retrieveCache(RubyClass selfType,
java.lang.String methodName)
Deprecated.
|
protected CacheEntry |
setCache(CacheEntry entry,
IRubyObject self) |
protected CacheEntry cache
@Deprecated protected CacheEntry builtinCache
public CachingCallSite(java.lang.String methodName,
CallType callType)
public final CacheEntry getCache()
protected CacheEntry setCache(CacheEntry entry, IRubyObject self)
public final boolean isOptimizable()
public final int getCachedClassIndex()
public final java.lang.String getMethodName()
public final long getCachedMethodSerial()
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum)
CallSitepublic IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote)
CallSitepublic IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args)
CallSitepublic IRubyObject fcall(ThreadContext context, IRubyObject self, IRubyObject... args)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block)
CallSitepublic IRubyObject fcall(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
public IRubyObject callIter(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block)
CallSitepublic IRubyObject fcallIter(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
public final IRubyObject callVarargs(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args)
CallSitecallVarargs in class CallSitecontext - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstargs - the arguments to passpublic final IRubyObject fcallVarargs(ThreadContext context, IRubyObject self, IRubyObject... args)
public final IRubyObject callVarargs(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block)
CallSitecallVarargs in class CallSitecontext - 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 passpublic final IRubyObject fcallVarargs(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
public final IRubyObject callVarargsIter(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block)
CallSitecallVarargsIter in class CallSitecontext - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstargs - the arguments to passblock - the literal block to passpublic final IRubyObject fcallVarargsIter(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self)
CallSitepublic IRubyObject fcall(ThreadContext context, IRubyObject self)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, Block block)
CallSitepublic IRubyObject fcall(ThreadContext context, IRubyObject self, Block block)
public final IRubyObject callIter(ThreadContext context, IRubyObject caller, IRubyObject self, Block block)
CallSitepublic final IRubyObject fcallIter(ThreadContext context, IRubyObject self, Block block)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1)
CallSitepublic IRubyObject fcall(ThreadContext context, IRubyObject self, IRubyObject arg1)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, Block block)
CallSitepublic IRubyObject fcall(ThreadContext context, IRubyObject self, IRubyObject arg1, Block block)
public IRubyObject callIter(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, Block block)
CallSitepublic IRubyObject fcallIter(ThreadContext context, IRubyObject self, IRubyObject arg1, Block block)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2)
CallSitepublic IRubyObject fcall(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, Block block)
CallSitecall in class CallSitecontext - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg1 - the first argument to passarg2 - the second argument to passblock - the block argument to passpublic IRubyObject fcall(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, Block block)
public final IRubyObject callIter(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, Block block)
CallSitecallIter in class CallSitecontext - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg1 - the first argument to passarg2 - the second argument to passblock - the literal block to passpublic final IRubyObject fcallIter(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, Block block)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
CallSitecall in class CallSitecontext - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg1 - the first argument to passarg2 - the second argument to passarg3 - the third argument to passpublic IRubyObject fcall(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block)
CallSitecall in class CallSitecontext - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg1 - the first argument to passarg2 - the second argument to passarg3 - the third argument to passblock - the block argument to passpublic IRubyObject fcall(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block)
public final IRubyObject callIter(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block)
CallSitecallIter in class CallSitecontext - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg1 - the first argument to passarg2 - the second argument to passarg3 - the third argument to passblock - the literal block to passpublic final IRubyObject fcallIter(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block)
public final CacheEntry retrieveCache(IRubyObject self)
public final CacheEntry retrieveCache(RubyClass selfType)
@Deprecated public final CacheEntry retrieveCache(RubyClass selfType, java.lang.String methodName)
public boolean isBuiltin(IRubyObject self)
public final boolean isBuiltin(RubyClass selfType)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject[] args, Block block)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject[] args)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, Block block)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject arg)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject arg, Block block)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject arg1, IRubyObject arg2)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject arg1, IRubyObject arg2, Block block)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
protected IRubyObject cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, Block block, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
protected boolean methodMissing(DynamicMethod method, IRubyObject caller)
protected static RubyClass getClass(IRubyObject self)
Copyright © 2001-2023 JRuby. All Rights Reserved.