public final class NativeMethod0 extends NativeMethod
NativeMethod0 represents an arity-0 native method. This class is for call optimization.DynamicMethod.NativeCallarity, functionbuiltin, callConfig, handle, implementationClass, name, nativeCall, nativeCalls, notImplemented, protectedClass, serialNumber, visibility| Constructor and Description |
|---|
NativeMethod0(RubyModule clazz,
int arity,
long function) |
| Modifier and Type | Method and Description |
|---|---|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
String name)
Arity 0, no block
|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
String name,
Block block)
Arity 0, with block; calls through IRubyObject[] path
|
calculateProtectedClass, call, call, call, call, call, call, getCallConfig, getHandle, getImplementationClass, getMethodData, getName, getNativeCall, getNativeCall, getProtectedClass, getRealMethod, getSerialNumber, getVisibility, handleBreak, handleRedo, handleReturn, init, isBuiltin, isCallableFrom, isNotImplemented, isUndefined, setCallConfig, setHandle, setImplementationClass, setIsBuiltin, setName, setNativeCall, setNativeCall, setNativeCall, setNotImplemented, setVisibilitypublic NativeMethod0(RubyModule clazz, int arity, long function)
public final IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name)
DynamicMethodcall in class DynamicMethodpublic final IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, Block block)
DynamicMethodcall in class DynamicMethodCopyright © 2001-2013 JRuby. All Rights Reserved.