public class NativeProcMethod extends NativeMethod
NativeProcMethod represents native functions that are wrapped in a RubyProc
object. They don't have scoping as normal Procs do and are no closures.DynamicMethod.NativeCallarity, functionbuiltin, callConfig, implementationClass, name, nativeCall, notImplemented, protectedClass, serialNumber, visibility| Constructor and Description |
|---|
NativeProcMethod(RubyModule clazz,
long function) |
| Modifier and Type | Method and Description |
|---|---|
IRubyObject |
call(ThreadContext context,
IRubyObject recv,
RubyModule clazz,
java.lang.String name,
IRubyObject[] args)
A default implementation of n-arity, non-block 'call' method,
which simply calls the n-arity, block-receiving version with
the arg list and Block.NULL_BLOCK.
|
IRubyObject |
call(ThreadContext context,
IRubyObject recv,
RubyModule clazz,
java.lang.String name,
IRubyObject[] args,
Block block)
The minimum 'call' method required for a dynamic method handle.
|
dup, getArity, isNativecalculateProtectedClass, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, getCallConfig, getImplementationClass, getName, getNativeCall, getProtectedClass, getRealMethod, getSerialNumber, getVisibility, handleBreak, handleRedo, handleReturn, init, isBuiltin, isCallableFrom, isNotImplemented, isUndefined, setCallConfig, setImplementationClass, setIsBuiltin, setName, setNativeCall, setNotImplemented, setVisibilitypublic NativeProcMethod(RubyModule clazz, long function)
public IRubyObject call(ThreadContext context, IRubyObject recv, RubyModule clazz, java.lang.String name, IRubyObject[] args)
DynamicMethodcall in class NativeMethodcontext - The thread context for the currently executing threadrecv - The 'self' or 'receiver' object to use for this callname - The incoming name used to invoke this methodpublic IRubyObject call(ThreadContext context, IRubyObject recv, RubyModule clazz, java.lang.String name, IRubyObject[] args, Block block)
DynamicMethodcall in class NativeMethodcontext - The thread context for the currently executing threadrecv - The 'self' or 'receiver' object to use for this callname - The incoming name used to invoke this methodargs - The argument list to this invocationblock - The block passed to this invocationCopyright © 2002-2009 JRuby Team. All Rights Reserved.