public class CallBlock19 extends BlockBody
argumentType, ARRAY, EMPTY_PARAMETER_LIST, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS
Constructor and Description |
---|
CallBlock19(Arity arity,
BlockCallback callback,
ThreadContext context) |
Modifier and Type | Method and Description |
---|---|
Arity |
arity()
What is the arity of this block?
|
IRubyObject |
call(ThreadContext context,
IRubyObject[] args,
Binding binding,
Block.Type type) |
IRubyObject |
call(ThreadContext context,
IRubyObject[] args,
Binding binding,
Block.Type type,
Block block) |
protected IRubyObject |
doYield(ThreadContext context,
IRubyObject[] args,
IRubyObject self,
Binding binding,
Block.Type type)
Yield to this block, usually passed to the current call.
|
protected IRubyObject |
doYield(ThreadContext context,
IRubyObject value,
Binding binding,
Block.Type type)
Subclass specific yield implementation.
|
String |
getFile()
Get the filename for this block
|
int |
getLine()
get The line number for this block
|
StaticScope |
getStaticScope() |
static Block |
newCallClosure(IRubyObject self,
RubyModule imClass,
Arity arity,
BlockCallback callback,
ThreadContext context) |
void |
setStaticScope(StaticScope newScope) |
IRubyObject |
yieldSpecific(ThreadContext context,
Binding binding,
Block.Type type) |
IRubyObject |
yieldSpecific(ThreadContext context,
IRubyObject arg0,
Binding binding,
Block.Type type) |
IRubyObject |
yieldSpecific(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Binding binding,
Block.Type type) |
IRubyObject |
yieldSpecific(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Binding binding,
Block.Type type) |
asArgumentType, call, call, call, call, call, call, call, call, getArgumentType, getArgumentTypeWackyHack, getParameterList, isGiven, prepareArgumentsForCall, setEvalType, yield, yield, yield, yield
public CallBlock19(Arity arity, BlockCallback callback, ThreadContext context)
public static Block newCallClosure(IRubyObject self, RubyModule imClass, Arity arity, BlockCallback callback, ThreadContext context)
public IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type)
public IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type, Block block)
public IRubyObject yieldSpecific(ThreadContext context, Binding binding, Block.Type type)
yieldSpecific
in class BlockBody
public IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, Binding binding, Block.Type type)
yieldSpecific
in class BlockBody
public IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Binding binding, Block.Type type)
yieldSpecific
in class BlockBody
public IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Binding binding, Block.Type type)
yieldSpecific
in class BlockBody
protected IRubyObject doYield(ThreadContext context, IRubyObject value, Binding binding, Block.Type type)
BlockBody
Should not be called directly. Gets called by BlockBody.yield(ThreadContext, IRubyObject, Binding, Block.Type)
after ensuring that any common yield logic is taken care of.
protected IRubyObject doYield(ThreadContext context, IRubyObject[] args, IRubyObject self, Binding binding, Block.Type type)
public StaticScope getStaticScope()
getStaticScope
in class BlockBody
public void setStaticScope(StaticScope newScope)
setStaticScope
in class BlockBody
public Arity arity()
BlockBody
public String getFile()
BlockBody
Copyright © 2001-2015 JRuby. All Rights Reserved.