public class InterpretedIRBlockBody extends ContextAwareBlockBody
scope
argumentType, ARRAY, EMPTY_PARAMETER_LIST, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS
Constructor and Description |
---|
InterpretedIRBlockBody(IRClosure closure,
Arity arity,
int argumentType) |
Modifier and Type | Method and Description |
---|---|
IRubyObject |
call(ThreadContext context,
IRubyObject[] args,
Binding binding,
Block.Type type) |
java.lang.String |
getFile()
Get the filename for this block
|
int |
getLine()
get The line number for this block
|
protected IRubyObject |
setupBlockArg(Ruby ruby,
IRubyObject value,
IRubyObject self) |
protected IRubyObject |
setupBlockArgs(ThreadContext context,
IRubyObject value,
IRubyObject self) |
IRubyObject |
yield(ThreadContext context,
IRubyObject value,
Binding binding,
Block.Type type) |
IRubyObject |
yield(ThreadContext context,
IRubyObject value,
IRubyObject self,
RubyModule klass,
boolean aValue,
Binding binding,
Block.Type type) |
arity, cloneBlock, getStaticScope, post, pre, setStaticScope
asArgumentType, call, call, call, call, call, call, call, call, call, getArgumentType, getArgumentTypeWackyHack, getParameterList, isGiven, prepareArgumentsForCall, yield, yield, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific
public IRubyObject yield(ThreadContext context, IRubyObject value, Binding binding, Block.Type type)
public IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type)
public IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean aValue, Binding binding, Block.Type type)
protected IRubyObject setupBlockArgs(ThreadContext context, IRubyObject value, IRubyObject self)
protected IRubyObject setupBlockArg(Ruby ruby, IRubyObject value, IRubyObject self)
public java.lang.String getFile()
BlockBody
Copyright © 2002-2009 JRuby Team. All Rights Reserved.