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, yieldSpecific
protected 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 BlockBody
public void setStaticScope(StaticScope newScope)
setStaticScope
in class BlockBody
public Signature getSignature()
getSignature
in class BlockBody
Copyright © 2001-2015 JRuby. All Rights Reserved.