|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.runtime.CallSite
public abstract class CallSite
This is the abstract superclass for all call sites in the system.
| Field Summary | |
|---|---|
protected CallType |
callType
The type of call this site makes |
java.lang.String |
methodName
The method name this site calls and caches |
| Constructor Summary | |
|---|---|
CallSite(java.lang.String methodName,
CallType callType)
Construct a new CallSite with the given method name and call type. |
|
| Method Summary | |
|---|---|
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self)
Call the site's method against the target object passing no args. |
abstract 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. |
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
double flote)
Call the site's method against the target object, passing a literal double value. |
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject... args)
Call the site's method against the target object passing arguments. |
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0)
Call the site's method against the target object passing one argument. |
abstract 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. |
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
Block block)
Call the site's method against the target object passing one argument and a non-literal (block pass, &) block. |
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1)
Call the site's method against the target object passing two arguments. |
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
Block block)
Call the site's method against the target object passing two arguments and a non-literal (block pass, &) block. |
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2)
Call the site's method against the target object passing two arguments. |
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg3,
Block block)
Call the site's method against the target object passing three arguments and a non-literal (block pass, &) block. |
abstract IRubyObject |
call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
long fixnum)
Call the site's method against the target object, passing a literal long value. |
abstract 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. |
abstract 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. |
abstract IRubyObject |
callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
Block block)
Call the site's method against the target object passing one argument and a literal block. |
abstract IRubyObject |
callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
Block block)
Call the site's method against the target object passing two arguments and a literal block. |
abstract IRubyObject |
callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block)
Call the site's method against the target object passing three arguments and a literal block. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String methodName
protected final CallType callType
| Constructor Detail |
|---|
public CallSite(java.lang.String methodName,
CallType callType)
methodName - the method name this site will call and cachecallType - the type of call to perform (normal, functional, etc)CallType| Method Detail |
|---|
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
long fixnum)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstfixnum - the literal long value to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
double flote)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstflote - the literal double value to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call against
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg0 - the argument to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg0 - the first argument to passarg1 - the second argument to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg0 - the first argument to passarg1 - the second argument to passarg2 - the third argument to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject... args)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstargs - the arguments to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
Block block)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstblock - the block argument to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
Block block)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg0 - the argument to passblock - the block argument to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
Block block)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg0 - the first argument to passarg1 - the second argument to passblock - the block argument to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg3,
Block block)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg0 - the first argument to passarg1 - the second argument to passarg2 - the third argument to passblock - the block argument to pass
public abstract IRubyObject call(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject[] args,
Block block)
context - 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 pass
public abstract IRubyObject callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
Block block)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstblock - the literal block to pass
public abstract IRubyObject callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
Block block)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg0 - the argument to passblock - the literal block to pass
public abstract IRubyObject callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
Block block)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg0 - the first argument to passarg1 - the second argument to passblock - the literal block to pass
public abstract IRubyObject callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block)
context - the ThreadContext for the current threadcaller - the caller, for visibility checksself - the target object to call againstarg0 - the first argument to passarg1 - the second argument to passarg2 - the third argument to passblock - the literal block to pass
public abstract IRubyObject callIter(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject[] args,
Block block)
context - 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 pass
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||