Top Description Fields Constructors Methods
org.jruby.runtime

public Class CallBlock19

extends BlockBody
Class Inheritance
Imports
org.jruby.RubyModule, org.jruby.parser.StaticScope, org.jruby.runtime.builtin.IRubyObject

A Block implemented using a Java-based BlockCallback implementation. For lightweight block logic within Java code.

Field Summary

Modifier and TypeField and Description
private final BlockCallback
private final StaticScope
Inherited from org.jruby.runtime.BlockBody:
NULL_BODYsignaturetestBlockBody

Constructor Summary

AccessConstructor and Description
public
CallBlock19(Signature signature, BlockCallback callback, ThreadContext context)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
public IRubyObject
call(ThreadContext context, Block block, IRubyObject[] args, Block blockArg)

Overrides org.jruby.runtime.BlockBody.call.

protected IRubyObject
doYield(ThreadContext context, Block block, IRubyObject value)

Implements abstract org.jruby.runtime.BlockBody.doYield.

Subclass specific yield implementation.

protected IRubyObject
doYield(ThreadContext
represents the current thread-specific data
context
,
Block block, IRubyObject[]
The args to yield
args
,
IRubyObject
The current self
self
)

Implements abstract org.jruby.runtime.BlockBody.doYield.

Yield to this block, usually passed to the current call.

public String
getFile()

Implements abstract org.jruby.runtime.BlockBody.getFile.

Get the filename for this block

public int
getLine()

Implements abstract org.jruby.runtime.BlockBody.getLine.

get The line number for this block

public StaticScope
public static Block
newCallClosure(IRubyObject self, RubyModule imClass, Signature signature, BlockCallback callback, ThreadContext context)

public static Block
newCallClosure(IRubyObject self, RubyModule imClass, Arity arity, BlockCallback callback, ThreadContext context)
Deprecated

public void
public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
Inherited from org.jruby.runtime.BlockBody:
aritycallcallcallcallcallcallcallcallcallDirectcanCallDirectgetArgumentDescriptorsgetSignaturegetTestBlockBodyisGivenisRubyBlockprepareArgumentsForCalltestBlockBodyyieldyieldyieldyieldyieldDirect

Field Detail

callbackback to summary
private final BlockCallback callback
dummyback to summary
private final StaticScope dummy

Constructor Detail

CallBlock19back to summary
public CallBlock19(Signature signature, BlockCallback callback, ThreadContext context)

Method Detail

callback to summary
public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args)

Overrides org.jruby.runtime.BlockBody.call.

Annotations
@Override
callback to summary
public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args, Block blockArg)

Overrides org.jruby.runtime.BlockBody.call.

Annotations
@Override
doYieldback to summary
protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject value)

Implements abstract org.jruby.runtime.BlockBody.doYield.

Doc from org.jruby.runtime.BlockBody.doYield.

Subclass specific yield implementation.

Should not be called directly. Gets called by yield(ThreadContext, Block, org.jruby.runtime.builtin.IRubyObject) after ensuring that any common yield logic is taken care of.

Annotations
@Override
doYieldback to summary
protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self)

Implements abstract org.jruby.runtime.BlockBody.doYield.

Yield to this block, usually passed to the current call.

Parameters
context:ThreadContext

represents the current thread-specific data

args:IRubyObject[]

The args to yield

self:IRubyObject

The current self

Annotations
@Override
getFileback to summary
public String getFile()

Implements abstract org.jruby.runtime.BlockBody.getFile.

Doc from org.jruby.runtime.BlockBody.getFile.

Get the filename for this block

getLineback to summary
public int getLine()

Implements abstract org.jruby.runtime.BlockBody.getLine.

Doc from org.jruby.runtime.BlockBody.getLine.

get The line number for this block

getStaticScopeback to summary
public StaticScope getStaticScope()

Implements abstract org.jruby.runtime.BlockBody.getStaticScope.

newCallClosureback to summary
public static Block newCallClosure(IRubyObject self, RubyModule imClass, Signature signature, BlockCallback callback, ThreadContext context)
newCallClosureback to summary
public static Block newCallClosure(IRubyObject self, RubyModule imClass, Arity arity, BlockCallback callback, ThreadContext context)

Deprecated

Annotations
@Deprecated
setStaticScopeback to summary
public void setStaticScope(StaticScope newScope)

Implements abstract org.jruby.runtime.BlockBody.setStaticScope.

yieldSpecificback to summary
public IRubyObject yieldSpecific(ThreadContext context, Block block)

Overrides org.jruby.runtime.BlockBody.yieldSpecific.

Annotations
@Override
yieldSpecificback to summary
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0)

Overrides org.jruby.runtime.BlockBody.yieldSpecific.

Annotations
@Override
yieldSpecificback to summary
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1)

Overrides org.jruby.runtime.BlockBody.yieldSpecific.

Annotations
@Override
yieldSpecificback to summary
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)

Overrides org.jruby.runtime.BlockBody.yieldSpecific.

Annotations
@Override