Package org.jruby.runtime
Class CallBlock19
java.lang.Object
org.jruby.runtime.BlockBody
org.jruby.runtime.CallBlock19
A Block implemented using a Java-based BlockCallback implementation. For
lightweight block logic within Java code.
-
Field Summary
Fields inherited from class org.jruby.runtime.BlockBody
NULL_BODY, signature, testBlockBody
-
Constructor Summary
ConstructorsConstructorDescriptionCallBlock19
(Signature signature, BlockCallback callback, ThreadContext context) -
Method Summary
Modifier and TypeMethodDescriptioncall
(ThreadContext context, Block block, IRubyObject[] args) call
(ThreadContext context, Block block, IRubyObject[] args, Block blockArg) protected IRubyObject
doYield
(ThreadContext context, Block block, IRubyObject value) Subclass specific yield implementation.protected IRubyObject
doYield
(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) Yield to this block, usually passed to the current call.getFile()
Get the filename for this blockint
getLine()
get The line number for this blockstatic Block
newCallClosure
(IRubyObject self, RubyModule imClass, Arity arity, BlockCallback callback, ThreadContext context) Deprecated.static Block
newCallClosure
(IRubyObject self, RubyModule imClass, Signature signature, BlockCallback callback, ThreadContext context) void
setStaticScope
(StaticScope newScope) yieldSpecific
(ThreadContext context, Block block) yieldSpecific
(ThreadContext context, Block block, IRubyObject arg0) yieldSpecific
(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) yieldSpecific
(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) Methods inherited from class org.jruby.runtime.BlockBody
arity, call, call, call, call, call, call, call, call, callDirect, canCallDirect, getArgumentDescriptors, getSignature, getTestBlockBody, isGiven, isRubyBlock, prepareArgumentsForCall, testBlockBody, yield, yield, yield, yield, yieldDirect
-
Constructor Details
-
CallBlock19
-
-
Method Details
-
newCallClosure
public static Block newCallClosure(IRubyObject self, RubyModule imClass, Signature signature, BlockCallback callback, ThreadContext context) -
newCallClosure
@Deprecated public static Block newCallClosure(IRubyObject self, RubyModule imClass, Arity arity, BlockCallback callback, ThreadContext context) Deprecated. -
call
-
call
-
yieldSpecific
- Overrides:
yieldSpecific
in classBlockBody
-
yieldSpecific
- Overrides:
yieldSpecific
in classBlockBody
-
yieldSpecific
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) - Overrides:
yieldSpecific
in classBlockBody
-
yieldSpecific
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) - Overrides:
yieldSpecific
in classBlockBody
-
doYield
Description copied from class:BlockBody
Subclass specific yield implementation.Should not be called directly. Gets called by
BlockBody.yield(ThreadContext, Block, org.jruby.runtime.builtin.IRubyObject)
after ensuring that any common yield logic is taken care of. -
doYield
protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) Yield to this block, usually passed to the current call. -
getStaticScope
- Specified by:
getStaticScope
in classBlockBody
-
setStaticScope
- Specified by:
setStaticScope
in classBlockBody
-
getFile
Description copied from class:BlockBody
Get the filename for this block -
getLine
public int getLine()Description copied from class:BlockBody
get The line number for this block
-