Top Fields Constructors Methods
org.jruby.runtime.callsite

public Class RefinedCachingCallSite

extends CachingCallSite
Class Inheritance
Imports
org.jruby.RubyClass, org.jruby.internal.runtime.methods.DynamicMethod, org.jruby.ir.IRScope, org.jruby.parser.StaticScope, org.jruby.runtime.Block, .CallType, .Helpers, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private final StaticScope
Inherited from org.jruby.runtime.callsite.CachingCallSite:
builtinCachecache

Constructor Summary

AccessConstructor and Description
public
RefinedCachingCallSite(String methodName, StaticScope scope, CallType callType)

public
RefinedCachingCallSite(String methodName, IRScope scope, CallType callType)

Method Summary

Modifier and TypeMethod and Description
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
)

Overrides org.jruby.runtime.callsite.CachingCallSite.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
)

Overrides org.jruby.runtime.callsite.CachingCallSite.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
)

Overrides org.jruby.runtime.callsite.CachingCallSite.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
)

Overrides org.jruby.runtime.callsite.CachingCallSite.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
arg0
)

Overrides org.jruby.runtime.callsite.CachingCallSite.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
arg0
,
Block
the block argument to pass
block
)

Overrides org.jruby.runtime.callsite.CachingCallSite.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
arg0
,
IRubyObject
the second argument to pass
arg1
)

Overrides org.jruby.runtime.callsite.CachingCallSite.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
arg0
,
IRubyObject
the second argument to pass
arg1
,
Block
the block argument to pass
block
)

Overrides org.jruby.runtime.callsite.CachingCallSite.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
arg0
,
IRubyObject
the second argument to pass
arg1
,
IRubyObject
the third argument to pass
arg2
)

Overrides org.jruby.runtime.callsite.CachingCallSite.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
arg0
,
IRubyObject
the second argument to pass
arg1
,
IRubyObject
the third argument to pass
arg2
,
Block
the block argument to pass
block
)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

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

protected boolean
Inherited from org.jruby.runtime.callsite.CachingCallSite:
cacheAndCallcacheAndCallcacheAndCallcacheAndCallcacheAndCallcacheAndCallcacheAndCallcacheAndCallcacheAndCallcacheAndCallcallcallcallItercallItercallItercallItercallItercallVarargscallVarargscallVarargsIterfcallfcallfcallfcallfcallfcallfcallfcallfcallfcallfcallIterfcallIterfcallIterfcallIterfcallIterfcallVarargsfcallVarargsfcallVarargsItergetCachegetCachedClassIndexgetCachedMethodSerialgetClassgetMethodNameisBuiltinisBuiltinisOptimizableretrieveCacheretrieveCacheretrieveCachesetCache

Field Detail

scopeback to summary
private final StaticScope scope

Constructor Detail

RefinedCachingCallSiteback to summary
public RefinedCachingCallSite(String methodName, StaticScope scope, CallType callType)
RefinedCachingCallSiteback to summary
public RefinedCachingCallSite(String methodName, IRScope scope, CallType callType)

Method Detail

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

args:IRubyObject[]

the arguments to pass

Returns:IRubyObject

the result of the call

Annotations
@Override
callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

args:IRubyObject[]

the arguments to pass

block:Block

the block argument to pass

Returns:IRubyObject

the result of the call

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

Returns:IRubyObject

the result of the call

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, Block block)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

block:Block

the block argument to pass

Returns:IRubyObject

the result of the call

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

arg0:IRubyObject

the argument to pass

Returns:IRubyObject

the result of the call

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, Block block)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

arg0:IRubyObject

the argument to pass

block:Block

the block argument to pass

Returns:IRubyObject

the result of the call

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

arg0:IRubyObject

the first argument to pass

arg1:IRubyObject

the second argument to pass

Returns:IRubyObject

the result of the call

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

arg0:IRubyObject

the first argument to pass

arg1:IRubyObject

the second argument to pass

block:Block

the block argument to pass

Returns:IRubyObject

the result of the call

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

arg0:IRubyObject

the first argument to pass

arg1:IRubyObject

the second argument to pass

arg2:IRubyObject

the third argument to pass

Returns:IRubyObject

the result of the call

callback to summary
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)

Overrides org.jruby.runtime.callsite.CachingCallSite.call.

Doc from org.jruby.runtime.CallSite.call.

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

Parameters
context:ThreadContext

the ThreadContext for the current thread

caller:IRubyObject

the caller, for visibility checks

self:IRubyObject

the target object to call against

arg0:IRubyObject

the first argument to pass

arg1:IRubyObject

the second argument to pass

arg2:IRubyObject

the third argument to pass

block:Block

the block argument to pass

Returns:IRubyObject

the result of the call

methodMissingback to summary
protected boolean methodMissing(DynamicMethod method, IRubyObject caller)

Overrides org.jruby.runtime.callsite.CachingCallSite.methodMissing.