Top Fields Constructors Methods
org.jruby.runtime.callsite

public abstract Class CachingCallSite

extends CallSite
Class Inheritance
Known Direct Subclasses
org.jruby.runtime.callsite.FunctionalCachingCallSite, org.jruby.runtime.callsite.MonomorphicCallSite, org.jruby.runtime.callsite.NormalCachingCallSite, org.jruby.runtime.callsite.ProfilingCachingCallSite, org.jruby.runtime.callsite.RefinedCachingCallSite, org.jruby.runtime.callsite.VariableCachingCallSite, org.jruby.runtime.callsite.BimorphicCallSite
Imports
org.jruby.RubyClass, org.jruby.internal.runtime.methods.DynamicMethod, org.jruby.runtime.Helpers, .Block, .CallSite, .CallType, .ClassIndex, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
protected CacheEntry
builtinCache

Deprecated
protected CacheEntry
Inherited from org.jruby.runtime.CallSite:
callTypemethodName

Constructor Summary

AccessConstructor and Description
public
CachingCallSite(String methodName, CallType callType)

Method Summary

Modifier and TypeMethod and Description
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
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
protected IRubyObject
cacheAndCall(ThreadContext context, IRubyObject caller, IRubyObject self, RubyClass selfType, Block block, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)

private CacheEntry
cacheAndGet(RubyClass selfType, String methodName)
Deprecated

private CacheEntry
cacheAndGet(IRubyObject self, RubyClass selfType, String methodName)

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
long
the literal long value to pass
fixnum
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object, passing a literal long value.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
double
the literal double value to pass
flote
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object, passing a literal double value.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject...
the arguments to pass
args
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing arguments.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject[]
the arguments to pass
args
,
Block
the block argument to pass
block
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing no args.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
Block
the block argument to pass
block
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing no arguments and a non-literal (block pass, &) block.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject
the argument to pass
arg1
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing one argument.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject
the argument to pass
arg1
,
Block
the block argument to pass
block
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject
the first argument to pass
arg1
,
IRubyObject
the second argument to pass
arg2
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing two arguments.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject
the first argument to pass
arg1
,
IRubyObject
the second argument to pass
arg2
,
Block
the block argument to pass
block
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing two arguments and a non-literal (block pass, &) block.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject
the first argument to pass
arg1
,
IRubyObject
the second argument to pass
arg2
,
IRubyObject
the third argument to pass
arg3
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing two arguments.

public IRubyObject
call(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject
the first argument to pass
arg1
,
IRubyObject
the second argument to pass
arg2
,
IRubyObject
the third argument to pass
arg3
,
Block
the block argument to pass
block
)

Implements abstract org.jruby.runtime.CallSite.call.

Call the site's method against the target object passing three arguments and a non-literal (block pass, &) block.

public IRubyObject
callIter(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject[]
the arguments to pass
args
,
Block
the literal block to pass
block
)

Implements abstract org.jruby.runtime.CallSite.callIter.

Call the site's method against the target object passing arguments and a literal block.

public final IRubyObject
callIter(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
Block
the literal block to pass
block
)

Implements abstract org.jruby.runtime.CallSite.callIter.

Call the site's method against the target object passing no arguments and a literal block.

public IRubyObject
callIter(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject
the argument to pass
arg1
,
Block
the literal block to pass
block
)

Implements abstract org.jruby.runtime.CallSite.callIter.

Call the site's method against the target object passing one argument and a literal block.

public final IRubyObject
callIter(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject
the first argument to pass
arg1
,
IRubyObject
the second argument to pass
arg2
,
Block
the literal block to pass
block
)

Implements abstract org.jruby.runtime.CallSite.callIter.

Call the site's method against the target object passing two arguments and a literal block.

public final IRubyObject
callIter(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject
the first argument to pass
arg1
,
IRubyObject
the second argument to pass
arg2
,
IRubyObject
the third argument to pass
arg3
,
Block
the literal block to pass
block
)

Implements abstract org.jruby.runtime.CallSite.callIter.

Call the site's method against the target object passing three arguments and a literal block.

public final IRubyObject
callVarargs(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject...
the arguments to pass
args
)

Implements abstract org.jruby.runtime.CallSite.callVarargs.

Call the site's method against the target object passing arguments.

public final IRubyObject
callVarargs(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject[]
the arguments to pass
args
,
Block
the block argument to pass
block
)

Implements abstract org.jruby.runtime.CallSite.callVarargs.

Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.

public final IRubyObject
callVarargsIter(ThreadContext
the ThreadContext for the current thread
context
,
IRubyObject
the caller, for visibility checks
caller
,
IRubyObject
the target object to call against
self
,
IRubyObject[]
the arguments to pass
args
,
Block
the literal block to pass
block
)

Implements abstract org.jruby.runtime.CallSite.callVarargsIter.

Call the site's method against the target object passing arguments and a literal block.

public IRubyObject
fcall(ThreadContext context, IRubyObject self, IRubyObject... args)

public IRubyObject
fcall(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)

public IRubyObject
public IRubyObject
fcall(ThreadContext context, IRubyObject self, Block block)

public IRubyObject
public IRubyObject
fcall(ThreadContext context, IRubyObject self, IRubyObject arg1, Block block)

public IRubyObject
public IRubyObject
fcall(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, Block block)

public IRubyObject
public IRubyObject
fcall(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block)

public IRubyObject
fcallIter(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)

public final IRubyObject
fcallIter(ThreadContext context, IRubyObject self, Block block)

public IRubyObject
fcallIter(ThreadContext context, IRubyObject self, IRubyObject arg1, Block block)

public final IRubyObject
fcallIter(ThreadContext context, IRubyObject self, IRubyObject arg1, IRubyObject arg2, Block block)

public final IRubyObject
public final IRubyObject
public final IRubyObject
fcallVarargs(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)

public final IRubyObject
public final CacheEntry
public final int
public final long
protected static RubyClass
public final String
public boolean
public final boolean
isBuiltin(RubyClass selfType)

public final boolean
protected boolean
private CacheEntry
public final CacheEntry
public final CacheEntry
public final CacheEntry
retrieveCache(RubyClass selfType, String methodName)
Deprecated

protected CacheEntry
Inherited from org.jruby.runtime.CallSite:
fcallfcalltoString