Top Description Fields Constructors Methods
org.jruby.runtime

public abstract Class ContextAwareBlockBody

extends BlockBody
Class Inheritance
Known Direct Subclasses
org.jruby.runtime.IRBlockBody, org.jruby.RubySymbol.SymbolProcBody, org.jruby.runtime.MethodBlockBody
Imports
org.jruby.parser.StaticScope

Common type for all block types which share similar values that ThreadContext uses.

Field Summary

Modifier and TypeField and Description
protected StaticScope
scope

The static scope for the block body

Inherited from org.jruby.runtime.BlockBody:
NULL_BODYsignaturetestBlockBody

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public StaticScope
protected void
post(ThreadContext context, Block block, Visibility vis, Frame lastFrame)

protected Frame
pre(ThreadContext context, Block block)

public void
Inherited from org.jruby.runtime.BlockBody:
aritycallcallcallcallcallcallcallcallcallcallcallDirectcanCallDirectdoYielddoYieldgetArgumentDescriptorsgetFilegetLinegetSignaturegetTestBlockBodyisGivenisRubyBlockprepareArgumentsForCalltestBlockBodyyieldyieldyieldyieldyieldDirectyieldSpecificyieldSpecificyieldSpecificyieldSpecific

Field Detail

scopeback to summary
protected StaticScope scope

The static scope for the block body

Constructor Detail

ContextAwareBlockBodyback to summary
public ContextAwareBlockBody(StaticScope scope, Signature signature)

Method Detail

getStaticScopeback to summary
public StaticScope getStaticScope()

Implements abstract org.jruby.runtime.BlockBody.getStaticScope.

postback to summary
protected void post(ThreadContext context, Block block, Visibility vis, Frame lastFrame)
preback to summary
protected Frame pre(ThreadContext context, Block block)
setStaticScopeback to summary
public void setStaticScope(StaticScope newScope)

Implements abstract org.jruby.runtime.BlockBody.setStaticScope.