public abstract class CallSite extends Object
Modifier and Type | Field and Description |
---|---|
protected CallType |
callType
The type of call this site makes
|
String |
methodName
The method name this site calls and caches
|
Constructor and Description |
---|
CallSite(String methodName,
CallType callType)
Construct a new CallSite with the given method name and call type.
|
Modifier and Type | Method and Description |
---|---|
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.
|
abstract IRubyObject |
callVarargs(ThreadContext context,
IRubyObject caller,
IRubyObject self,
IRubyObject... args)
Call the site's method against the target object passing arguments.
|
abstract 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.
|
abstract 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.
|
public final String methodName
protected final CallType callType
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 passpublic 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 passpublic 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 againstpublic 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 passpublic 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 passpublic 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 passpublic 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 passpublic abstract IRubyObject callVarargs(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 passpublic 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 passpublic 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 passpublic 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 passpublic 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 passpublic 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 passpublic abstract IRubyObject callVarargs(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 passpublic 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 passpublic 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 passpublic 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 passpublic 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 passpublic 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 passpublic abstract IRubyObject callVarargsIter(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 passCopyright © 2001-2015 JRuby. All Rights Reserved.