public class FullFunctionCallbackMethod extends DynamicMethod
DynamicMethod.NativeCallbuiltin, callConfig, implementationClass, name, nativeCall, notImplemented, protectedClass, serialNumber, visibility| Constructor and Description |
|---|
FullFunctionCallbackMethod(RubyModule implementationClass,
Callback callback,
Visibility visibility) |
| Modifier and Type | Method and Description |
|---|---|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule clazz,
java.lang.String name,
IRubyObject[] args,
Block block)
The minimum 'call' method required for a dynamic method handle.
|
DynamicMethod |
dup()
Duplicate this method, returning DynamicMethod referencing the same code
and with the same attributes.
|
Arity |
getArity()
Retrieve the arity of this method, used for reporting arity to Ruby
code.
|
Callback |
getCallback() |
calculateProtectedClass, call, 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, isNative, isNotImplemented, isUndefined, setCallConfig, setImplementationClass, setIsBuiltin, setName, setNativeCall, setNotImplemented, setVisibilitypublic FullFunctionCallbackMethod(RubyModule implementationClass, Callback callback, Visibility visibility)
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject[] args, Block block)
DynamicMethodcall in class DynamicMethodcontext - The thread context for the currently executing threadself - 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 invocationpublic Callback getCallback()
public Arity getArity()
DynamicMethodgetArity in class DynamicMethodpublic DynamicMethod dup()
DynamicMethoddup in class DynamicMethodCopyright © 2002-2009 JRuby Team. All Rights Reserved.