public abstract class MethodBlock extends ContextAwareBlockBody
arity, scopeargumentType, ARRAY, EMPTY_PARAMETER_LIST, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS| Constructor and Description |
|---|
MethodBlock(RubyMethod method,
StaticScope staticScope) |
arity, cloneBlock, getStaticScope, setStaticScopeasArgumentType, call, call, call, call, call, call, call, call, getArgumentType, getArgumentTypeWackyHack, getParameterList, isGiven, newArgsArrayFromArgsWithoutUnbox, newArgsArrayFromArgsWithUnbox, prepareArgumentsForCallpublic MethodBlock(RubyMethod method, StaticScope staticScope)
public static Block createMethodBlock(ThreadContext context, IRubyObject self, DynamicScope dynamicScope, MethodBlock body)
public abstract IRubyObject callback(IRubyObject value, IRubyObject method, IRubyObject self, Block block)
public IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type)
public IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type, Block block)
protected Frame pre(ThreadContext context, RubyModule klass, Binding binding)
pre in class ContextAwareBlockBodyprotected void post(ThreadContext context, Binding binding, Visibility visibility, Frame lastFrame)
post in class ContextAwareBlockBodypublic IRubyObject yieldSpecific(ThreadContext context, Binding binding, Block.Type type)
yieldSpecific in class BlockBodypublic IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, Binding binding, Block.Type type)
yieldSpecific in class BlockBodypublic IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Binding binding, Block.Type type)
yieldSpecific in class BlockBodypublic IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Binding binding, Block.Type type)
yieldSpecific in class BlockBodypublic IRubyObject yield(ThreadContext context, IRubyObject value, Binding binding, Block.Type type)
public IRubyObject yield(ThreadContext context, IRubyObject value, Binding binding, Block.Type type, Block block)
public IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean aValue, Binding binding, Block.Type type)
public IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean aValue, Binding binding, Block.Type type, Block block)
public String getFile()
BlockBodypublic int getLine()
BlockBodypublic RubyMethod getMethod()
Copyright © 2001-2014 JRuby. All Rights Reserved.