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?
|
StaticScope |
getStaticScope() |
protected void |
post(ThreadContext context,
Binding binding,
Visibility vis,
Frame lastFrame) |
protected Frame |
pre(ThreadContext context,
Binding binding) |
void |
setStaticScope(StaticScope newScope) |
asArgumentType, call, call, call, call, call, call, call, call, call, call, doYield, doYield, getArgumentType, getArgumentTypeWackyHack, getFile, getLine, getParameterList, isGiven, prepareArgumentsForCall, setEvalType, yield, yield, yield, yield, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecificprotected StaticScope scope
protected final Arity arity
public ContextAwareBlockBody(StaticScope scope, Arity arity, int argumentType)
protected Frame pre(ThreadContext context, Binding binding)
protected void post(ThreadContext context, Binding binding, Visibility vis, Frame lastFrame)
public StaticScope getStaticScope()
getStaticScope in class BlockBodypublic void setStaticScope(StaticScope newScope)
setStaticScope in class BlockBodyCopyright © 2001-2015 JRuby. All Rights Reserved.