Package org.jruby.runtime
Class NullBlockBody
java.lang.Object
org.jruby.runtime.BlockBody
org.jruby.runtime.NullBlockBody
-
Field Summary
Fields inherited from class org.jruby.runtime.BlockBody
NULL_BODY, signature, testBlockBody -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(ThreadContext context, Block block) call(ThreadContext context, Block block, IRubyObject arg0) call(ThreadContext context, Block block, IRubyObject[] args) call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) protected IRubyObjectdoYield(ThreadContext context, Block block, IRubyObject value) Subclass specific yield implementation.protected IRubyObjectdoYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) Subclass specific yield implementation.getFile()Get the filename for this blockintgetLine()get The line number for this blockvoidsetStaticScope(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, callDirect, canCallDirect, getArgumentDescriptors, getSignature, getTestBlockBody, isGiven, isRubyBlock, prepareArgumentsForCall, testBlockBody, yield, yield, yield, yield, yieldDirect
-
Constructor Details
-
NullBlockBody
public NullBlockBody()
-
-
Method Details
-
call
-
call
-
yieldSpecific
- Overrides:
yieldSpecificin classBlockBody
-
call
-
yieldSpecific
- Overrides:
yieldSpecificin classBlockBody
-
call
-
yieldSpecific
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) - Overrides:
yieldSpecificin classBlockBody
-
call
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) -
yieldSpecific
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) - Overrides:
yieldSpecificin classBlockBody
-
doYield
Description copied from class:BlockBodySubclass 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) Description copied from class:BlockBodySubclass specific yield implementation.Should not be called directly. Gets called by
BlockBody.yield(ThreadContext, Block, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.builtin.IRubyObject)after ensuring that all common yield logic is taken care of. -
getStaticScope
- Specified by:
getStaticScopein classBlockBody
-
setStaticScope
- Specified by:
setStaticScopein classBlockBody
-
getFile
Description copied from class:BlockBodyGet the filename for this block -
getLine
public int getLine()Description copied from class:BlockBodyget The line number for this block
-