public abstract class JavaInternalBlockBody extends BlockBody
EMPTY_PARAMETER_LIST, NULL_BODY, signature
Constructor and Description |
---|
JavaInternalBlockBody(Ruby runtime,
Signature signature)
For blocks which can be executed in any thread concurrently.
|
JavaInternalBlockBody(Ruby runtime,
ThreadContext originalContext,
String methodName,
Signature signature)
For blocks which cannot be executed in parallel.
|
Modifier and Type | Method and Description |
---|---|
IRubyObject |
call(ThreadContext context,
Block block,
IRubyObject[] args) |
IRubyObject |
call(ThreadContext context,
Block b,
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)
Subclass specific yield implementation.
|
String |
getFile()
Get the filename for this block
|
int |
getLine()
get The line number for this block
|
StaticScope |
getStaticScope() |
void |
setStaticScope(StaticScope newScope) |
abstract IRubyObject |
yield(ThreadContext context,
IRubyObject[] args) |
arity, call, call, call, call, call, call, call, call, callDirect, canCallDirect, getArgumentDescriptors, getSignature, isGiven, prepareArgumentsForCall, setEvalType, yield, yield, yield, yield, yieldDirect, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific
public JavaInternalBlockBody(Ruby runtime, Signature signature)
public JavaInternalBlockBody(Ruby runtime, ThreadContext originalContext, String methodName, Signature signature)
public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args)
public IRubyObject call(ThreadContext context, Block b, IRubyObject[] args, Block blockArg)
protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject value)
BlockBody
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.
protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self)
BlockBody
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.
public abstract IRubyObject yield(ThreadContext context, IRubyObject[] args)
public StaticScope getStaticScope()
getStaticScope
in class BlockBody
public void setStaticScope(StaticScope newScope)
setStaticScope
in class BlockBody
public String getFile()
BlockBody
Copyright © 2001-2016 JRuby. All Rights Reserved.