public class InterpretedBlock extends ContextAwareBlockBody
SharedScopeBlock, CompiledBlock
Modifier and Type | Field and Description |
---|---|
protected Assigner |
assigner
Logic for assigning the blocks local variables
|
arity, scope
argumentType, ARRAY, EMPTY_PARAMETER_LIST, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS
Constructor and Description |
---|
InterpretedBlock(IterNode iterNode,
Arity arity,
int argumentType) |
InterpretedBlock(IterNode iterNode,
int argumentType) |
arity, cloneBlock, getStaticScope, post, pre, setStaticScope
asArgumentType, call, call, call, call, call, call, call, call, call, call, getArgumentType, getArgumentTypeWackyHack, getParameterList, isGiven, newArgsArrayFromArgsWithoutUnbox, newArgsArrayFromArgsWithUnbox, prepareArgumentsForCall
protected Assigner assigner
public InterpretedBlock(IterNode iterNode, int argumentType)
public static Block newInterpretedClosure(ThreadContext context, IterNode iterNode, IRubyObject self)
public static Block newInterpretedClosure(ThreadContext context, BlockBody body, IRubyObject self)
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
public IRubyObject yield(ThreadContext context, Binding binding, Block.Type type)
public IRubyObject yield(ThreadContext context, IRubyObject value, Binding binding, Block.Type type)
public IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean alreadyArray, Binding binding, Block.Type type, Block block)
public IRubyObject yield(ThreadContext context, IRubyObject value, Binding binding, Block.Type type, Block block)
public IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean alreadyArray, Binding binding, Block.Type type)
yield
in class BlockBody
context
- represents the current thread-specific datavalue
- The value to yield, either a single value or an array of valuesself
- The current selfklass
- alreadyArray
- do we need an array or should we assume it already is one?public Node getBodyNode()
public String getFile()
BlockBody
Copyright © 2001-2014 JRuby. All Rights Reserved.