Package org.jruby.runtime
Class CompiledIRBlockBody
java.lang.Object
org.jruby.runtime.BlockBody
org.jruby.runtime.ContextAwareBlockBody
org.jruby.runtime.IRBlockBody
org.jruby.runtime.CompiledIRBlockBody
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MethodHandleprotected final MethodHandleprotected MethodHandleprotected MethodHandleprotected MethodHandleprotected final MethodHandleFields inherited from class org.jruby.runtime.IRBlockBody
fileName, lineNumberFields inherited from class org.jruby.runtime.ContextAwareBlockBody
scopeFields inherited from class org.jruby.runtime.BlockBody
NULL_BODY, signature, testBlockBody -
Constructor Summary
ConstructorsConstructorDescriptionCompiledIRBlockBody(MethodHandle handle, StaticScope scope, String file, int line, String encodedArgumentDescriptors, long encodedSignature) -
Method Summary
Modifier and TypeMethodDescriptionprotected IRubyObjectcallDirect(ThreadContext context, Block block, IRubyObject[] args, Block blockArg) booleanprotected IRubyObjectcommonYieldPath(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self, Block blockArg) protected IRubyObjectyieldDirect(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) Methods inherited from class org.jruby.runtime.IRBlockBody
call, call, call, call, call, call, doYield, doYield, doYieldLambda, getFile, getLine, getScope, isRubyBlock, toAry, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecificMethods inherited from class org.jruby.runtime.ContextAwareBlockBody
getStaticScope, post, pre, setStaticScopeMethods inherited from class org.jruby.runtime.BlockBody
arity, call, call, call, call, getSignature, getTestBlockBody, isGiven, prepareArgumentsForCall, testBlockBody, yield, yield, yield, yield
-
Field Details
-
handle
-
callHandle
-
yieldDirectHandle
-
normalYieldHandle
-
normalYieldSpecificHandle
-
normalYieldUnwrapHandle
-
-
Constructor Details
-
CompiledIRBlockBody
public CompiledIRBlockBody(MethodHandle handle, StaticScope scope, String file, int line, String encodedArgumentDescriptors, long encodedSignature)
-
-
Method Details
-
getArgumentDescriptors
- Overrides:
getArgumentDescriptorsin classBlockBody
-
canCallDirect
public boolean canCallDirect()- Specified by:
canCallDirectin classIRBlockBody
-
getCallHandle
-
getNormalYieldSpecificHandle
-
getNormalYieldHandle
-
getNormalYieldUnwrapHandle
-
callDirect
protected IRubyObject callDirect(ThreadContext context, Block block, IRubyObject[] args, Block blockArg) - Overrides:
callDirectin classBlockBody
-
yieldDirect
protected IRubyObject yieldDirect(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) - Overrides:
yieldDirectin classBlockBody
-
commonYieldPath
protected IRubyObject commonYieldPath(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self, Block blockArg) - Specified by:
commonYieldPathin classIRBlockBody
-