public class InterpretedIRMetaClassBody extends InterpretedIRMethod
InterpretedIRMethod.DynamicMethodBox
DynamicMethod.NativeCall
IRMethodArgs.ArgType
box, method
builtin, callConfig, handle, implementationClass, name, nativeCall, nativeCalls, notImplemented, protectedClass, serialNumber, visibility
Constructor and Description |
---|
InterpretedIRMetaClassBody(IRScope metaClassBody,
RubyModule implementationClass) |
Modifier and Type | Method and Description |
---|---|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule clazz,
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.
|
List<String[]> |
getParameterList() |
protected void |
post(InterpreterContext ic,
ThreadContext context) |
protected void |
pre(InterpreterContext ic,
ThreadContext context,
IRubyObject self,
String name,
Block block) |
call, call, call, call, doDebug, dupBox, ensureInstrsReady, getActualMethod, getArity, getFile, getIRMethod, getLine, getMethodForCaching, getStaticScope, isSynthetic, setActualMethod, setCallCount, switchToJitted, tryJit
calculateProtectedClass, call, call, call, call, call, getCallConfig, getHandle, getImplementationClass, getMethodData, getName, getNativeCall, getNativeCall, getProtectedClass, getRealMethod, getSerialNumber, getVisibility, handleBreak, handleRedo, handleReturn, init, isBuiltin, isCallableFrom, isImplementedBy, isNative, isNotImplemented, isNull, isUndefined, setCallConfig, setHandle, setImplementationClass, setIsBuiltin, setName, setNativeCall, setNativeCall, setNativeCall, setNotImplemented, setVisibility
public InterpretedIRMetaClassBody(IRScope metaClassBody, RubyModule implementationClass)
public List<String[]> getParameterList()
getParameterList
in interface IRMethodArgs
getParameterList
in class InterpretedIRMethod
protected void post(InterpreterContext ic, ThreadContext context)
protected void pre(InterpreterContext ic, ThreadContext context, IRubyObject self, String name, Block block)
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block)
DynamicMethod
call
in class InterpretedIRMethod
context
- 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 DynamicMethod dup()
DynamicMethod
dup
in class InterpretedIRMethod
Copyright © 2001-2015 JRuby. All Rights Reserved.