public abstract class ContextAwareBlockBody extends BlockBody
| Modifier and Type | Field and Description |
|---|---|
protected StaticScope |
scope
The static scope for the block body
|
protected Signature |
signature
The 'Arity' of the block
|
argumentType, ARRAY, EMPTY_PARAMETER_LIST, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS| Constructor and Description |
|---|
ContextAwareBlockBody(StaticScope scope,
Arity arity,
int argumentType) |
ContextAwareBlockBody(StaticScope scope,
Signature signature,
int argumentType) |
| Modifier and Type | Method and Description |
|---|---|
Arity |
arity()
What is the arity of this block?
|
Signature |
getSignature() |
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 Signature signature
public ContextAwareBlockBody(StaticScope scope, Signature signature, int argumentType)
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 BlockBodypublic Signature getSignature()
getSignature in class BlockBodyCopyright © 2001-2015 JRuby. All Rights Reserved.