public abstract class ContextAwareBlockBody extends BlockBody
Modifier and Type | Field and Description |
---|---|
protected Arity |
arity
The 'Arity' of the block
|
protected StaticScope |
scope
The static scope for the block body
|
argumentType, ARRAY, EMPTY_PARAMETER_LIST, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS
Constructor and Description |
---|
ContextAwareBlockBody(StaticScope scope,
Arity arity,
int argumentType) |
Modifier and Type | Method and Description |
---|---|
Arity |
arity()
What is the arity of this block?
|
Block |
cloneBlock(Binding binding) |
StaticScope |
getStaticScope() |
protected void |
post(ThreadContext context,
Binding binding,
Visibility vis,
Frame lastFrame) |
protected Frame |
pre(ThreadContext context,
RubyModule klass,
Binding binding) |
void |
setStaticScope(StaticScope newScope) |
asArgumentType, call, call, call, call, call, call, call, call, call, call, getArgumentType, getArgumentTypeWackyHack, getFile, getLine, getParameterList, isGiven, newArgsArrayFromArgsWithoutUnbox, newArgsArrayFromArgsWithUnbox, prepareArgumentsForCall, yield, yield, yield, yield, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific
protected StaticScope scope
protected final Arity arity
public ContextAwareBlockBody(StaticScope scope, Arity arity, int argumentType)
protected Frame pre(ThreadContext context, RubyModule klass, Binding binding)
protected void post(ThreadContext context, Binding binding, Visibility vis, Frame lastFrame)
public StaticScope getStaticScope()
getStaticScope
in class BlockBody
public void setStaticScope(StaticScope newScope)
setStaticScope
in class BlockBody
public Arity arity()
BlockBody
public Block cloneBlock(Binding binding)
cloneBlock
in class BlockBody
Copyright © 2001-2014 JRuby. All Rights Reserved.